问题描述
- 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)
解决方案
错误 如下 :
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
----------------------
解决方案二:
一般情况下都是缺少js引用文件导致的
时间: 2024-12-25 10:04:54