伏笔2023 2015-10-30 05:08 采纳率: 0%
浏览 3126

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条回答

  • Robot-S 2015-10-30 05:12
    关注

    错误 如下 :
    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,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?

    评论

报告相同问题?

悬赏问题

  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥30 python代码,帮调试,帮帮忙吧