【问题标题】:The optimal solution for clicking on the mobile version点击手机版的最佳解决方案
【发布时间】:2018-04-12 09:09:52
【问题描述】:

最近,我阅读了一篇关于“好”系统(IOS 9)以及关于 safari 中的错误数量的文章。事件click 不起作用。我找到了许多解决此问题的方法,但都在他们自己的方式,每个人都有自己的缺点。您能说出在项目上挂起事件的最佳解决方案是什么吗?仅在移动设备上工作。

【问题讨论】:

    标签: javascript mobile jquery-mobile mobile-safari


    【解决方案1】:

    我总是使用 jQuery mobile 的 vclick 事件。此事件处理程序模拟移动设备上的“onclick”事件处理程序。

    看看documentation

    希望对你有帮助!

    【讨论】:

    • jQuery('#from-from-txt,#to-to-txt,#to-from-txt,#from-to-txt').on("vclick",function (event) { window.scrollTo(0, 0); } ); 没用(
    猜你喜欢
    • 2020-04-12
    • 1970-01-01
    • 2023-03-13
    • 1970-01-01
    • 2014-09-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-05
    相关资源
    最近更新 更多