前端:var sgIds= new Array();
$checkGoods.each(function(){ var sgId=$(this).attr("data-sgId");sgIds.push(sgId);
}var status =1;
$.ajax({
type:"POST", url:url data:{sgIds:sgIds,status:status}, datatype: "json", success:function(resp){...}error: function(){} });后台:public Object Method(@RequestParam("sgIds[]") List<Long> sgIds,Integer status)throws ServiceBusyException {....}
类似问题相关:http://www.oschina.net/question/1863482_211259
https://my.oschina.net/jiefalcon/blog/384153