2013-03-27 57 views

回答

1

我清楚地din't理解你的问题,但你需要清除的时间间隔上的mouseup上的文件。

$('.mouse_trap').mousedown(function(){ 
     intervalvar = setInterval(monitorClicks, 24); 

     /*will clear the interval and unbind the function on first mouseup on the document*/ 
     $(document).one('mouseup', function() 
     { 
      clearInterval(intervalvar); 
     }); 
    }); 
+0

哎呀,对不起,我以前的答复。非常感谢,你真的解决了另一个问题。 – styke 2013-03-27 13:45:45