var timeout =null;

$("#Btn").on("click",function(){

clearTimeout(timeout);//停止单击定时事件

timeout= window.setTimeout(function(){//延迟单击事件触发内容

console.log("this is click event");

}, 200); });

$("#Btn").on("dblclick",function(){

clearTimeout(timeout); //停止单击定时事件

console.log("this is dblclick event");

});

05-24 05:42