标签:for active tag add span keyword ber javascrip content
function Ctr($scope) {
$scope.isActive = true;
}
<div ng-class="{true: ‘active‘, false: ‘inactive‘}[isActive]">
</div>
标签:for active tag add span keyword ber javascrip content
原文地址:http://www.cnblogs.com/cxchanpin/p/7143131.html