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

采用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

版权声明:本文博主原创文章。博客,未经同意不得转载。

上一篇:java学习day6--方法重载与方法递归


下一篇:20200911 day6 数论复习(四)期望,组合数,概率