0
XML數據有這樣的方法我如何存取權限響應
angular.module('RDash')
.controller("SipsCtrl", ['$scope','$http', function($scope, $http){
'use strict';
$http({
method: 'GET',
url: 'http://192.168.2.35/SIPSWS/SIPSWS.asmx/HelloWorld'
}).then(
//OK
function (response) {
$scope.btnCUPS = "Exito",
},
//KO
function (response) {
$scope.btnCUPS = "Error",
});
}]);
我有一個服務器狀態200 OK,而ÿ鴕鳥政策查看響應。
我應該得到下一個結構的XML數據響應
<string xmlns="http://tempuri.org/">Hola a todos</string>
我怎樣才能把我的觀點去應對?
你試過console.log(響應)嗎? –