我是在webstorm工具上寫的代碼html:<!DOCTYPE?html>
<html?ng-app>
<head>
????<meta?charset="UTF-8">
????<title>Title</title>
????<script?src="js/angular.js"></script>
????<script?src="js/HelloAngular-MVC.js"></script>
</head>
<body>
????<div?ng-controller="HelloAngular">
????????<p>{{greeting.text}},Angular</p>
????</div>
</body>
</html>js:function?HelloAngular($scope)?{
????$scope.greeting?={
????????text:'hello'
????};
}結(jié)果:
請問為什么我的html顯示的是{{greeting.text}},Angular而不是Hello,Angular
呆呆呆
2017-06-30 16:12:32