traditional: true,
var ids=[]; var sendQtys=[]; $(list).each(function(){ var li=this; ids.push(li.cuttingOperationId); sendQtys.push(li.sendQty); }); // var cids=ids.join(","); // var csendQtys=sendQtys.join(","); Util.ajax({ url: 'fms/****/***', data: { actualQty:actualQty, cuttingOperationIdList: ids, sendQtysList: sendQtys }, traditional: true, success: function(data) { if(!data.success) { Message.error(data.msg); }else{ Message.info(data.msg); vm.loadStore(); panelVm.close(); } } });
第二种
data: $.param({ produceOrderIdList: idList, sapLineNumList:sapLineNumList }, true) , async: false,