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