ionic2/3 ngClass 和ngStyle用法
摘要:ngClass第一个参数为类名称,第二个参数为boolean值,如果为true就添加第一个参数的类 [ngClass]="{'text-success':index == 0}" ngStyle没有判断 <div [ngStyle]="{'background-color':'green'}"></
阅读全文
posted @ 2020-09-18 14:23