AngularJS 使用ng-repeat报错
[ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify uniq
ng-repeat报错
{{word}}
[ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys
发现是因为相同的内容重复引起,解决方案
{{word}}
在ng-repeat后面加上
track by $index
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!


![AngularJS 使用ng-repeat报错 [ngRepeat:dupes] AngularJS 使用ng-repeat报错 [ngRepeat:dupes]](http://www.mshxw.com/aiimages/31/90702.png)
