<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>