【发布时间】:2017-10-03 08:42:06
【问题描述】:
我需要调用 Web 服务来获取一些数据,但是当我使用此代码时:
app.controller('Hello', function($scope, $http) {
var config = {
headers: {
"loginName": 'opzudecche',
"password" : "****"
}
};
$http.put("WEBSERVICEURL", config).then(function(response) {
$scope.greeting = response.data;
});
});
它继续向我返回错误 400...我错在哪里?
【问题讨论】:
标签: angularjs web-services put