阅读背景:

为什么我使用AngularJS在控制器内部获得$ http

来源:互联网 

What's wrong on this?

这有什么不对?

var modulo = angular.module('SWAApp', []);
modulo.controller('SWAAllocationController', ['$scope','$http', function RunSWAAllocation($scope,$http) {
    $scope.LaunchAllocation = function RunSWAAllocation($scope, $http) {
        $http.get('/MP3_SIOP/WS/SWAService.svc/PostSWAAllocation')
        .success(function (data) {
            pvt_BindHeaderData($scope, data);
            alert("SWA Allocation OK");
        })
        .error(function (data, status) {
            alert("Si è verificato un errore nel dei dati!")
        });
    }
}]);
var modulo = 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: