【问题标题】:How to get rid of the cick delay. It takes like 2 seconds in Ipad如何摆脱 cick 延迟。在 Ipad 中大约需要 2 秒
【发布时间】:2017-12-29 16:52:17
【问题描述】:

这是我的示例代码,更改需要大约 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>

【问题讨论】:

  • 你试过用(tap)="..."代替(click)="..."吗?
  • 点击不起作用:/

标签: ionic-framework ionic2 ionic3


【解决方案1】:

通过更新 Ionic 脚本而不使用内联 css 来解决这个问题

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-11-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-01
    • 2012-01-02
    • 1970-01-01
    相关资源
    最近更新 更多