-6

皆さん、以下のコードを確認してください。なぜ機能しないのですか..

<!doctype html>
<html>
<head>          
        <meta charset="utf-8">
        <title></title> 
</head> 
<body ng-app>
        <h1 ng-controller="HWCtrl">{{helloMessage}}</h1>

        <srcipt src="angular.js"></srcipt>
        <script type="text/javascript">                 
                function HWCtrl($scope) {
                    $scope.helloMessage = 'Hello World';
                }

        </script>
</body>

ng-controller用のHWCtrl関数を作成しました..よろしくお願いします

4

1 に答える 1

4

つづりを間違えましたscript:

<srcipt src="angular.js"></srcipt>
  ^-- here                   ^-- and here
于 2013-08-20T20:35:18.677 に答える