JavaScript double click event?

前端 未结 3 921
天涯浪人
天涯浪人 2021-01-15 00:49

Scripts

var timer;
var firing = false;
var begen = function(id) {
    alert(\'one click\');
};

var popupAc = function(id) {
    alert(\'dou         


        
3条回答
  •  悲&欢浪女
    2021-01-15 01:38

    Move your clearTimeout above the alert

    clearTimeout(timer);
    popupAc(id);
    

    PS: I might be wrong, just guessing, not having firefox here..

提交回复
热议问题