视图层中ajax传数据
$.ajax({ type: "post",//提交方式 data: { complay_arry: complay_arry, site_arry: site_arry, equipment_arry: equipment_arry, id: id },//查询的参数 url: "/Role/DaTarole",//提交的路径 success: function (res2) { alert(res2.message); location.href = "/Role/Edit/"+id; } })
控制器接收ajax传递的数据
数组也可以直接传