https://docs.angularjs.org/ap... If the expression evaluates to an object, then for each key-value pair of the object with a truthy value the corresponding key is used as a class name.
例如:
<li ng-repeat="data in ruleList" ng-class="{'active': $first, 'delete': $last}">{{data.ruleName}}</li>
分别判断两个class的话,用对象表达式
例如:
可以写一个方法返回相应的类