liu201312

var count = 0, timer;
document.onclick = function(){
if(count < 2){
if(timer){
clearTimeout(timer);
}
count ++;
timer = setTimeout(function(){
count = 0;
}, 500);
}else if(count === 2){
count = 0;
clearTimeout(timer);
threeClick();
}
}
function threeClick(){
alert(\'three click\');
}

分类:

技术点:

相关文章:

  • 2022-01-27
  • 2022-03-02
  • 2021-08-29
  • 2021-12-12
  • 2022-12-23
  • 2022-01-02
  • 2022-02-07
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案