当前位置:Gxlcms > PHP教程 > php-angularjs$http.post传值给本地PHP服务器,服务器应该怎么接收数据?

php-angularjs$http.post传值给本地PHP服务器,服务器应该怎么接收数据?

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

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)

人气教程排行