AngularJS 使用ng-repeat报错
代码如下 [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify uniqng-repeat报错
代码如下{{word}}
[ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys
发现是因为相同的内容重复引起,解决方案
代码如下{{word}}
在ng-repeat后面加上
代码如下 track by $indexangularjs api文档|AngularJS 使用ng-repeat报错
http://m.bbyears.com/wangyezhizuo/120638.html
推荐访问:angularjs2 angularjs下载 angularjs自定义指令 angularjs和vue的区别