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 />