cmd里运行gulp为什么浏览器里出现不了页面

来源:3-2 自动化构建工具(1)

慕圣6052956

2018-05-02

Uncaught TypeError: $http.get(...).success is not a function
写回答

2回答

慕雪1613582

2018-05-04

在浏览器控制台里输入  angular.version,确认一下版本~

0
0

慕雪1613582

2018-05-03

index.js代码运行出错了,你使用的AngularJS1.6版本,$http服务删除了success函数。两个解决方法:

  1. 换成和课程一样的AngularJS1.5版本

  2. $http.get(...).then(function( resp ) { $scope.xxx = resp.data })

0
3
慕圣6052956
现在倒是又出现这个错了 Uncaught TypeError: $http.get(...).success is not a function index.js:375 livereload.js?snipver=1:351 LiveReload protocol error (invalid command 'reload', only valid commands are: hello)) after receiving data: "{"command":"reload","path":"C:\\web\\dist\\view\\search.html","liveCSS":true,"liveJs":true,"liveImg":true}".. http://localhost:3000/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)
2018-05-03
共3条回复

Angular JS 仿拉勾网 WebApp 开发移动端单页应用

基于AngularJS,仿拉勾网开发一个招聘类的移动端单页应用

1660 学习 · 857 问题

查看课程