<li ng-class="{on: onSw==true}">
</script>
?? ?? ?????? ???? ??? ?? ? ????
業(yè)精于勤,荒于嬉;行成于思,毀于隨。
li?? ng-repeat? ???? ???? ?? ??? ??? ?????.??? ? ??? onSw? ???? ???? ???? $index????? ??? ?? ???? $scope.items[index]? ?????. .onSw=true