标签:
解决办法: 1.设置一下default head 2.参数转换一下data:$.param({orderNo: orderNo,sessionId:sessionId}) $http.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded"; $scope.afterSales = [] var sessionId = getSesssionId(); // after sales $http({ method: "POST", url: "/metronic/api/getAfterSales", data:$.param({orderNo: orderNo,sessionId:sessionId}), async: false, dataType:‘json‘ }).success(function(data, status) { $scope.afterSales = data; }).error(function(data, status) { });
标签:
原文地址:http://my.oschina.net/moks/blog/517240