angular中设置$http的post请求的数据传递格式
ArgularJS的$http方法支持全局设置:
$http.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded";
ArgularJS的$http方法支持全局设置:
$http.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded";