如何解决移动端jQuery双击事件冲突问题?
- 内容介绍
- 文章标签
- 相关推荐
本文共计52个文字,预计阅读时间需要1分钟。
jQuery双击事件+移动端兼容解决方案.txt
jquery 双击事件 移动端冲突解决方法.txt/*$("#btn1").on("click", function(){ if( new Date().getTime() - touchtime < 500 ){ console.log("dblclick"); }else{ touchtime = new Date().getTime(); console.log("click") } });*/
本文共计52个文字,预计阅读时间需要1分钟。
jQuery双击事件+移动端兼容解决方案.txt
jquery 双击事件 移动端冲突解决方法.txt/*$("#btn1").on("click", function(){ if( new Date().getTime() - touchtime < 500 ){ console.log("dblclick"); }else{ touchtime = new Date().getTime(); console.log("click") } });*/

