1
我正在研究angularjs。我創建了一個scrlipt。當我開始在瀏覽器applciation,出現這樣的,Angularjs dom加載準備好
和稍後到來的結果,
<body>
<div data-ng-controller="SimpleController">
Search By Name: <input type="text" data-ng-model="searchTerm" />
<ul>
<li data-ng-repeat="cust in customers | filter:searchTerm | orderBy:name">{{cust.name}} - {{cust.city | uppercase}}</li>
</ul>
</div>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></script>
<script type="text/javascript">
function SimpleController($scope) {
$scope.customers = [
{ name: 'John', city: 'Barcelona' },
{ name: 'Scott', city: 'Madrid' },
{ name: 'Jennifer', city: 'Seattle' },
{ name: 'Mike', city: 'Atalanta' }
];
}
</script>
</body>
我想看看加載一切都像第二張照片後導致。