angularJS的ng-repeat规定次数循环

一句代码:

<!--只让循环执行1次--> 
<div ng-repeat="d in all | limitTo:1"></div>
原文地址:https://www.cnblogs.com/bertha-zm/p/8399357.html