记一下后端传来前端的Json数组 转换 为list对象
前两天搞一个项目的时候,需要从前端传来一个对象,后端去接收,前端格式是这样的
$.ajax({
url:'/delivery/checkDeliveryExist.mvc',
type:'post',
dataType:'json',
data:{
"code":code,"itemNumber":itemNumber.join(","),"declareCode":declareCode, "itemStrategyId":itemStrategyId.join(","),"itemInfo":itemInfo.join(",")},
success:function(result){
if(result.hasgroup){
$list.fn.warnCheckEvent("发布的组合商品编码["+result.groupCode+"]中单品["+ result.groupItemList