您的位置:首页 > 产品设计 > UI/UE

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

2014-12-22 11:24 435 查看
   使用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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  angularjs
相关文章推荐