摘要: $http.get(...).success is not a function 错误解决 1.6 新版本的AngularJs中用then和catch 代替了success和error,用PRomise规则。 更改写法: $http.get('/api/user/showname2', { //内容 阅读全文
posted @ 2017-07-04 14:39 smile_lee 阅读(252) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html lang="en" ng-app="myApp"><head> <meta charset="UTF-8" /> <title>Document</title></head><body> <div ng-controller="studentControll 阅读全文
posted @ 2017-07-04 12:56 smile_lee 阅读(110) 评论(0) 推荐(0) 编辑