我是法国人,对不好的正字法感到抱歉......
您好,我正在尝试使用WebService Angular在Prestashop上检索视频链接。
JSON的形式是:
<prestashop>
<opartproductvideos>
<opartproductvideo>
<link> <language id = "1"xlink:href="http://localhost/prestashop/api/languages/1">https://www.youtube.com/watch?v=_SJV31BsoUc</language> </link>
</opartproductvideo>
<opartproductvideo>
<link><language id = "1"xlink:href="http://localhost/prestashop/api/languages/1">https://www.youtube.com/watch?v=2Yyqf388uN4</language></link></opartproductvideo>
<opartproductvideo>
<link><language id = "1"xlink:href="http://localhost/prestashop/api/languages/1">https://www.youtube.com/watch?v=Gzu9rNgxgsw</language></link></opartproductvideo>
</opartproductvideos>
</prestashop>
在HTML文件中,我有<li ng-repeat = "videos in video track by $ id">
。
我收到错误
Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: videos in video track by videos, Duplicate key: ", Duplicate value: "
你知道吗?
欢呼声,