如何在ng-repeat中允许重复?

Mon*_*han 6 html model-view-controller json angularjs angularjs-ng-repeat

我正在使用stringify和json正在格式化,并在警报它即将到来.但在实际链接中它不显示.当我签入控制台时出现错误,因为"在重复该键时不允许重复".

任何人都可以告诉如何在ng-repeat中允许重复,以便打印格式化的json.

The*_*ush 6

将'track by $ index'添加到转发器.

https://docs.angularjs.org/error/ngRepeat/dupes