html使用:. <div ng-class="{true:'selected',false:'unselected'}[isSelected]">hello world</div>. 解释:当isSelected 为true时,增加selected ...
確定! 回上一頁