猿问

新手学angular,求大神解答

<!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


zetro
浏览 1469回答 1
1回答

小白师兄

大哥!你贴的代码是你刻意把名字都隐去了吗?我除了在你的错误代码里面看到了firstController控制器出问题,啥也看不见,正经来说,你应该把你的控制器代码贴一下吧!你这样问问题会不会有点......
随时随地看视频慕课网APP

相关分类

AngularJS
我要回答