你能解釋一下爲什麼下面的代碼返回Error: error:areq Bad Argument?爲什麼此片段返回「錯誤:areq錯誤論據」?
(見live example)
<!DOCTYPE html>
<html ng-app>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<script>
function SimpleController($scope) {
$scope.users = [
{name: 'Dave Jones', city: 'Phoenix'},
{name: 'Jane True', city:'Washington'}
];
}
</script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js"></script>
</head>
<body ng-controller="SimpleController">
<ul>
<li ng-repeat="user in users">{{ user.name }}</li>
</ul>
</body>
</html>
謝謝你的回答。這很好地解釋了爲什麼在30分鐘[AngularJS基礎知識在60小時內](https://www.youtube.com/watch?v=i9MHigUZKEM),該片段不再有效。 – 2014-12-02 11:55:32