PHP头条
热点:

php-PHP怎么获取获取angularjshttp.post


http.postphppostangularjs

前端:$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接收:echo file_get_contents('php://input'); 没显示任何数据
图片说明
这是什么原因,没获取到数据吗?

www.phpzy.comtrue/php/2797.htmlTechArticlephp-PHP怎么获取获取angularjshttp.post http.postphppostangularjs 前端:$http({ method: 'POST', url: "http://127.0.0.1:8080/school/studentadd.php", data : newnames, headers : {'Content-Type': 'application/x-www-form-urlencoded' } })....

相关文章

相关频道:

PHP之友评论

今天推荐