<p>使用 ng-repeat 来循环数组</p>
<ul>
<li data-ng-repeat="x in numArray">
{{ x }}
</li>
</ul>
ng-repeat(带有对象)
<p>循环对象:</p>
<ul>
<li ng-repeat="x in names">
{{ x.name + ', ' + x.country }}</li>
</ul>
如果数组中有重复的数据,用 item in arr track by $index:
<li ng-repeat="item in arr track by $index">{{item}}</li>