嗨,大家好,你能幫助我我剛開始學習angularjs。如何處理這些錯誤第一個AngularJS + Angular UI路由器
- app.js:6>未捕獲的ReferenceError:角不定義
- angular.min.js:6>未捕獲的錯誤:[$注射器:modulerr] http://errors.angularjs.org/1.2.20/ $注射器/ modulerr ?P0 = AJS & P1 =錯誤%3A%20 ...%2F%2FC%3A%2FUsers%2FABK3%2FDesktop%2Fajs%2Fjs%2Fangular.min.js%3A18%3A139)
在此先感謝球員
var app = angular.module('ajs', ['ui.router'])
<!DOCTYPE html>
<html ng-app="ajs">
<head>
<meta charset="utf-8">
<title>AJS</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<h1 ui-view>Hi</h1>
</body>
<script src="app.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/angular-ui-router.min.js"></script>
<script src="jquery/jquery.min.js"></script>
</html>
謝謝@Lucio。這真的很有用 – angelo