angularJS 报错:$http.get is not a function

TypeError: $http.get is not a function
at Function.$scope.init (userscore.js:24)
at new studentscoreController (userscore.js:37)
at Object.e as invoke
at $get.Q.instance (angular-1.4.4.min.js:80)
at K (angular-1.4.4.min.js:61)
at g (angular-1.4.4.min.js:54)
at angular-1.4.4.min.js:53
at angular-1.4.4.min.js:20
at n.$get.n.$eval (angular-1.4.4.min.js:133)
at n.$get.n.$apply (angular-1.4.4.min.js:133)

2个回答

错误 如下 :
type Status report
messageHTTP method GET is not supported by this URL
descriptionThe specified HTTP method is not allowed for the requestedresource.
原因:
对于HTTP/1.1,父类HttpServlet的doGet或......
答案就在这里:HTTP Status 405 - HTTP method GET is not supported by this URL
----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?

一般情况下都是缺少js引用文件导致的

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问