ajax post 数组
2016-05-11 12:14
225 查看
ajax post 传递数组参数后台接收的为null,需要将其连接为字符串后传递
var url = "@Url.Action("CheckOutProduct", "ProductManage")";
var idsStr = ids.join(',');
$.post(url, { id: idsStr },
var url = "@Url.Action("CheckOutProduct", "ProductManage")";
var idsStr = ids.join(',');
$.post(url, { id: idsStr },
相关文章推荐
- 212. Word Search II
- Java 8方法引用使用指南
- AC自动机 HDU3065
- 数值计算误差
- 解决 The word is not correctly spelled问题
- 67-Gray Code
- threading使用心得
- BZOJ 3456 城市规划
- 每秒处理10万订单乐视集团支付架构
- Java 8方法引用使用指南
- 【HUSTOJ】1102: 那些四位数之二
- java的重载、覆盖和隐藏的区别
- STM32_DAC输出三角波形
- 【krpano】浏览点赞插件1.1(源码+介绍+预览)
- java 打印流
- git工程迁移(修改提交服务器地址)方法
- studio 真机调试时出现“Application xxxx waiting for the debugger to attach”
- C++中const应放在类型前还是后
- 【转】观察者模式
- CentOS6.5中修改yum源