jquery 双击事件 移动端冲突解决方法.txt /*$("#btn1").on("click", function(){ if( new Date().getTime() - touchtime 500 ){ console.log("dblclick"); }else{ touchtime = new Date().getTime(); console.log("click") } });*/
/*$("#btn1").on("click", function(){ if( new Date().getTime() - touchtime < 500 ){ console.log("dblclick"); }else{ touchtime = new Date().getTime(); console.log("click") } });*/