AngularJS使用ng-repeat报错[ngRepeat:dupes]

AngularJS 使用ng-repeat报错

创新互联主要业务有网站营销策划、成都网站制作、成都网站建设、微信公众号开发、小程序设计成都h5网站建设、程序开发等业务。一次合作终身朋友,是我们奉行的宗旨;我们不仅仅把客户当客户,还把客户视为我们的合作伙伴,在开展业务的过程中,公司还积累了丰富的行业经验、营销型网站资源和合作伙伴关系资源,并逐渐建立起规范的客户服务和保障体系。 

 [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]
文章链接:http://pwwzsj.com/article/jsejsh.html