角度java腳本在browser.i中顯示{{message}},我嘗試了所有可能的方式,但仍然很糟糕。角度java腳本在瀏覽器中顯示{{message}}
var myApp=angular.module("mod",[]);
myApp.controller("con", function($scope){
$scope.message = "hhhhhhhh";
});
<html ng-app="mod">
<head>
\t <script src="bower_components/angular/angular.js"></script>
\t <script src="sample.js"></script>
\t </head>
<body ng-controller="con">
<div>
{{message}}
</div>
</body>
</html>
不應該第二個腳本標記包含「src」而不是「type」?!! –
第二個腳本應該包含類型而不是源 – user3696882
學習在瀏覽器控制檯中查看拋出的錯誤和線索的結果......並在開發工具網絡中查找更多線索 – charlietfl