gpt4 book ai didi

javascript - FastClick 和 click() 事件触发麻烦

转载 作者:行者123 更新时间:2023-11-28 03:52:06 25 4
gpt4 key购买 nike

我在包含 FastClick 时遇到了麻烦在我的项目中。一切正常,移动设备上的 300 毫秒延迟丢失,但以编程方式触发 click() 事件现在在移动设备上不起作用。

最佳答案

它在文档中说了这一点(好吧,你在高级下链接的页面)

This is where the needsclick class comes in. Add the class to any element that requires a non-synthetic click.

因此将类 needsclick 添加到您想要手动触发“点击”的元素

关于javascript - FastClick 和 click() 事件触发麻烦,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24328767/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com