如果items 里有20条数据,如果你要循环 items, 只想循环5条 你可以这么做: ng-repeat="item in items|limitTo:5" 转载于:https://www.cnblogs.com/zpzp6/p/10918574.html