Maison >développement back-end >tutoriel php >php怎么接收json
php如何接收json
$.ajax({<br /> <br /> cache: true,<br /> type: "POST",<br /> url:"__URL__/index", <br /> data:{name:$("#name").val()},<br /> async: false,<br /> datatype: "json",<br /> error: function(request) {<br /> alert("Connection error");<br /> },<br /> success: function(data) {<br /> <br /> <br /> }<br /> });