首页 > 其他 > 详细

ng-repeat循环输出出现Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique

时间:2014-12-22 12:59:02      阅读:3122      评论:0      收藏:0      [点我收藏+]

   使用ng-repeat循环输出对象的时候出现如下错误:

Duplicates in a repeater are not allowed. Use ‘track by‘ expression to specify unique keys. Repeater: c in shopCount, Duplicate key: undefined:undefined



应该在循环是加以下代码    ng-repeat item in items track by $index

ng-repeat循环输出出现Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique

原文:http://blog.csdn.net/u013440660/article/details/42077787

(1)
(2)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!