$scope.setActive = function (index) {. 3. $scope.activeIndex = index;. 4. }; 5. 6. ng-class="{active: $index == activeIndex}".
確定! 回上一頁