为了账号安全,请及时绑定邮箱和手机立即绑定

新手学angular,求大神解答

新手学angular,求大神解答

zetro 2016-09-12 14:34:42
<!DOCTYPE html> <lang=> <>     <charset=>     <>Title</>     <type=src=></>     <type=src=></> </> <>     <ng-app=>         <ng-controller=>             <type=value=ng-model=>             <type=value=ng-model=>             {{}}             {{}}         </>     </> </> </>= ($scope){     $scope.= ;     $scope.= ; }浏览器报错Error: [ng:areq] http://errors.angularjs.org/1.5.8/ng/areq?p0=firstController&p1=not%20a%20function%2C%20got%20undefined    at Error (native)    at http://localhost:63342/untitled/vender/angular/angular.min.js:6:412    at sb (http://localhost:63342/untitled/vender/angular/angular.min.js:23:18)    at Pa (http://localhost:63342/untitled/vender/angular/angular.min.js:23:105)    at http://localhost:63342/untitled/vender/angular/angular.min.js:89:310    at ag (http://localhost:63342/untitled/vender/angular/angular.min.js:72:419)    at p (http://localhost:63342/untitled/vender/angular/angular.min.js:64:262)    at g (http://localhost:63342/untitled/vender/angular/angular.min.js:58:481)    at g (http://localhost:63342/untitled/vender/angular/angular.min.js:58:498)    at http://localhost:63342/untitled/vender/angular/angular.min.js:58:119
查看完整描述

1 回答

?
小白师兄

TA贡献55条经验 获得超37个赞

大哥!你贴的代码是你刻意把名字都隐去了吗?我除了在你的错误代码里面看到了firstController控制器出问题,

啥也看不见,正经来说,你应该把你的控制器代码贴一下吧!

你这样问问题会不会有点......

查看完整回答
反对 回复 2016-09-13
  • 1 回答
  • 0 关注
  • 1467 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信