AngularJS 使用 ng-repeat 为标签设置唯一ID:
<li data-ng-repeat="data1 in data.subNaviMenu track by $index"> <a ng-href={{data1.routing}} id="rout-{{$index}}"> <span data-translate={{data1.international}}> </span> </a> </li>
AngularJS 使用 ng-repeat 为标签设置唯一ID:
<li data-ng-repeat="data1 in data.subNaviMenu track by $index"> <a ng-href={{data1.routing}} id="rout-{{$index}}"> <span data-translate={{data1.international}}> </span> </a> </li>