这是我的示例代码,更改发生需要2秒钟
<ion-row *ngFor="let week of month.fullweeks; let weekindex =index" style="margin-bottom:5px;">
<ion-col *ngFor="let day of week;let i = index" tappable (click)="selectday(day,monthindex,i,weekindex)" >
<div class="day" [ngClass]="{'startactive':(day.style == 1),'finishactive':(day.style == 2)}" ><div *ngIf="day.day != 0" >{{day.day}}</div></div>
</ion-col>
</ion-row>
答案 0 :(得分:0)
通过更新Ionic Scripts而不是使用内联css
来管理解决此问题