错误原因在于出现相同内容。
原写为:
<li ng-repeat="log in logs" scroll-down>
{{log}}
</li>
改写为:
<li ng-repeat="log in logs track by $index" scroll-down>
{{log}}
</li>
加track by $index即可解决。
错误原因在于出现相同内容。
原写为:
<li ng-repeat="log in logs" scroll-down>
{{log}}
</li>
改写为:
<li ng-repeat="log in logs track by $index" scroll-down>
{{log}}
</li>
加track by $index即可解决。