ajax post 数组

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

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

原文地址:https://www.cnblogs.com/taoshengyujiu/p/5481436.html