angular 默認使用的是application/json方式提交,如果需要兼容以前的老系統 需要這樣更改 ,記錄一下
$http({
method : 'POST',
url : url,
data : $.param(postData),
headers : {
'Content-Type' : 'application/x-www-form-urlencoded'
}
}).success(function(data) {
return ;
}
});
</pre><br /><br />