angularjs运行有时可以有时又不可以?

<!DOCTYPE html>
<html ng-app="scotchApp">
<head>
	<meta charset="UTF-8">
	<title>About</title>
	<script src="js/angular.min.js"></script>
	<script src="js/script.js"></script>
</head>
<body ng-controller="aboutController">
	<div class="jumbotron text-ceenter">
		<h1>About Page</h1>
		<p>{{message}}</p>
	</div>
</body>
</html>
scotchApp.controller('aboutController',function($scope){
	$scope.message='look! I am an about page.';
});

运行结果:

About Page

{{message}}

哪里出现问题了?

待放
浏览 1343回答 1
1回答

O_____O

    var scotchApp = angular.module("scotchApp",[])     scotchApp.controller('aboutController',function($scope){         $scope.message='look! I am an about page.';     });
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

AngularJS