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

标签 javascript jquery html web webkit

我在包含 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/

相关文章:

javascript - Kendo Grid - 悬停时获取单元格索引

php - 使用 jQuery/javascript 代码时 PHP MVC 应该是什么样子?

jquery - 单击带有单击统计信息的 html 页面的叠加层

html - CSS 变换比例滚动问题

javascript - 测试 $state.go 在 Angular JS 规范中给出错误

javascript - 将页面添加到浏览器历史记录中,而无需实际打开该页面

javascript - E4X:如何向现有 E4X 对象添加默认命名空间

javascript - 如果目标未定义,jQuery 会阻止键盘按下?

javascript - 是否可以使用代码来转换格式为 'list' : "translation"? 的列表

html - 尝试在没有 CDN 的情况下包含 font-awesome