search

Home  >  Q&A  >  body text

javascript - How to simulate click events on h5 mobile terminal

The click event will not take effect, what event should be used instead

过去多啦不再A梦过去多啦不再A梦2780 days ago952

reply all(4)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-06-12 09:32:42

    $("xx").on("touchstart",function(){

    //something

    })

    reply
    0
  • 大家讲道理

    大家讲道理2017-06-12 09:32:42

    The click event also works on the mobile terminal, but there will be a 300ms delay. You can use touchstart or custom event tab instead

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-06-12 09:32:42

    zepto.js touch.js

    reply
    0
  • typecho

    typecho2017-06-12 09:32:42

    touchstart or tap event of zepto.js framework

    reply
    0
  • Cancelreply