解决angularjs的post传入后台的springMVc不识
2015-10-27 本文已影响0人
额尔齐斯冷
var transform =function(data){return$.param(data); }
$http.post("/foo/bar", requestData, { headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}, transformRequest: transform }).success(function(responseData) {//do stuff with response});