当前位置:Gxlcms > PHP教程 > ajax取值,该如何处理

ajax取值,该如何处理

时间:2021-07-01 10:21:17 帮助过:22人阅读

ajax 取值
  1. <br> $.ajax({<br> type: "post", <br> url: "ddd.php", <br> data: {"inserted":[{"productionName":"空压机","product":"科兴","productionType":"KX-11D","fenjieselect":"分解","proctionNO":"02"},{"productionName":"空压机","product":"科兴","productionType":"KX-12D","fenjieselect":"分解","proctionNO":"03"}],"updated":[],"deleted":[]}, <br> datatype: "text",<br> success:function(data){<br> alert (data);<br><br> } <br><br>})


我在后台的PHP里如何取到inserted ,updated ,deleted 的值啊?
------解决方案--------------------
你不是写了POST接收吗? 在ddd.php 里面print_r($_POST)
------解决方案--------------------
  1. <!--?php<br /-->if($_POST) {<br> print_r($_POST);<br> exit;<br>}<br>?><br><br><br>

人气教程排行