ng-repeat出現環路輸出Duplicates in a repeater are not allowed. Use 'track by' expression to specif

   採用ng-repeat循環發生錯誤時,以下面的輸出對象:express

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



應該在循環是加下面代碼    ng-repeat item in items track by $index對象

版權聲明:本文博主原創文章。博客,未經贊成不得轉載。ci

相關文章
相關標籤/搜索