javascript - 在angular 1.2.0 $http.get().success() 报错 success is not defined ?
ringa_lee
ringa_lee 2017-04-10 17:39:33
0
1
773

框架是angular1.2.0 $http.get().success() 报错 success is not defined 请问什么错误

ringa_lee
ringa_lee

ringa_lee

reply all (1)
PHPzhong

你的 $http 是否注入了。

angular.module('app',[]).controller('UserCtrl',['$http',function($http){ $http.get().success(); }]);

这样写,全靠手打,可以会出错,多多包涵

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!