摘要: ngClass第一个参数为类名称,第二个参数为boolean值,如果为true就添加第一个参数的类 [ngClass]="{'text-success':index == 0}" ngStyle没有判断 <div [ngStyle]="{'background-color':'green'}"></ 阅读全文
posted @ 2020-09-18 14:23 路暝月 阅读(27) 评论(0) 推荐(0)