阅读背景:

是否可以通过任意数字来重复递增$ index?

来源:互联网 

I currently have a template:

我目前有一个模板:

        <div class="choice-pair" ng-repeat="choicePair in pastChoices track by $index" ng-init="p1Result = getP1Result(choicePair); choiceNum = $index + 1;">
            <div class="turn-count cell"><strong>{{choiceNum}}</strong></div>
            <div class="p1 cell" ng-class="{win: p1Result === 1, lose: p1Result === -1, draw: p1Result === 0}"><strong>{{choicePair[0]}}</strong></div>
            <div class="p2 cell" ng-class="{win: p1Result === -1, lose: p1Result === 1, draw: p1Result === 0}"><strong>{{choicePair[1]}}</strong></div>
        </div>
    



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: