<div ng-class="setStyle(variable)"></div> 然后使用以下的代码: $scope.setStyle = function(args) { if(args == 1) return 'class1'; ...
確定! 回上一頁