84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
选中复选框的时候,li上加入一个classname,取消选中的时候,去掉li的classname 寻觅了好长时间也没找到操作dom的好办法
Use ng-class ng-class="{'className':value}" When value is true, className style will be applied
If you use class,最好给li一个ng-class,<li ng-class="{true: 'clasname'}[checked == true]" ></li>~
class
li
ng-class
<li ng-class="{true: 'clasname'}[checked == true]" ></li>
Use ng-class
ng-class="{'className':value}"
When value is true, className style will be applied
If you use
class
,最好给li
一个ng-class
,<li ng-class="{true: 'clasname'}[checked == true]" ></li>
~