2013-03-27 61 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