WCF Rest Service调用浏览器并返回结果。但不是来自Angular JS

时间:2015-07-09 06:08:30

标签: angularjs angularjs-service wcf-rest

.controller('DtccRejectionController', function ($scope, $http) {

   $http.get('http://localhost:55467/WCFServiceHost/DFAService.svc/GetDtccRejects")
                          .success(function (result) {
                              alert('got data');
                              $scope.Rejections = result.d;
                              if (result.d) {
                                  alert('got if');
                              }
                          });

});

它给出了" undefined"导致.error功能。请帮忙

0 个答案:

没有答案