作者:东cz莞痴 | 来源:互联网 | 2018-04-24 01:48
比如:$http({method:'POST',url:"127.0.0.1:8080schoolstudentadd.php",data:newnames,headers:{'Content-Type':'applicationx-www-form-urlencoded'}}).success(function(){console.log('success');
phpangularjs
比如:
$http({
method: 'POST',
url: "http://127.0.0.1:8080/school/studentadd.php",
data : newnames,
headers : {'Content-Type': 'application/x-www-form-urlencoded' }
}).success(function(){
console.log('success');
}).error(function(){
alert("error");
});
PHP服务器应该怎么接收这个数据?(我用的appserv)