打赏

ajax post 数组

 

ajax post 传递数组参数后台接收的为null,需要将其连接为字符串后传递

var url = "@Url.Action("CheckOutProduct", "ProductManage")";
var idsStr = ids.join(',');
$.post(url, { id: idsStr },

posted @ 2016-05-11 12:14  KiteRunner1988  阅读(306)  评论(0编辑  收藏  举报