//html内容
<li ng-class="{true:active,false:disactive}[isActive(month,1)]">当前li</li>
//controller
$scope.isActive=function(v1,v2){
if(v1==v2){
return true;
}
return false;
}
原文链接:https://www.f2er.com/angularjs/147898.html//html内容
<li ng-class="{true:active,false:disactive}[isActive(month,1)]">当前li</li>
//controller
$scope.isActive=function(v1,v2){
if(v1==v2){
return true;
}
return false;
}
原文链接:https://www.f2er.com/angularjs/147898.html