1. 当两层ng-repeat都需要$index时, 使用ng-init重命名
<div ng-repeat="item in data" ng-init="$num = $index"> <div ng-repeat="value in data[$num] track by $index"> <span>{{value}}</span> </div> </div>
2.