Heim  >  Fragen und Antworten  >  Hauptteil

移动端页面开发,到底用Click多还是Touch事件多?

移动端页面开发,到底用Click多还是Touch事件多?300ms真的有影响吗?有必要用touch事件吗?

phpcn_u700phpcn_u7002797 Tage vor742

Antworte allen(2)Ich werde antworten

  • 数据分析师

    数据分析师2017-10-01 00:26:22

    移动端页面开发,到底用Click多还是Touch事件多?-PHP中文网问答-移动端页面开发,到底用Click多还是Touch事件多?-PHP中文网问答

    围观一下哦,学习一下。

    Antwort
    0
  • 巴扎黑

    巴扎黑2017-02-21 09:40:22

    首先,直接用touch事件是不靠谱的,因为比如滑动之类的也会触发touchStart,touchEnd,即便是zepto的tap也是用touch模拟的
    其次,300ms真的有影响,感知上确实要慢一些,建议用fastclick或者zepto那种模拟的tap

    Antwort
    0
  • StornierenAntwort