$.ajax({
type: "post",
url: "ddd.php",
data: {"inserted":[{"productionName":"空压机","product":"科兴","productionType":"KX-11D","fenjieselect":"分解","proctionNO":"02"},{"productionName":"空压机","product":"科兴","productionType":"KX-12D","fenjieselect":"分解","proctionNO":"03"}],"updated":[],"deleted":[]},
datatype: "text",
success:function(data){
alert (data);
}
})
我在后台的ddd.php里如何取到inserted ,updated ,deleted 的值啊?
------解决办法--------------------
最后提交的键值对格式如下
inserted[0][fenjieselect] 分解
inserted[0][proctionNO] 02
inserted[0][product] 科兴
inserted[0][productionName] 空压机
inserted[0][productionType] KX-11D
inserted[1][fenjieselect] 分解
inserted[1][proctionNO] 03
inserted[1][product] 科兴
inserted[1][productionName] 空压机
inserted[1][productionType] KX-12D