복붙노트

[JQUERY] know.settimeout ()을 취소 / 제거하십시오

JQUERY

know.settimeout ()을 취소 / 제거하십시오

해결법


  1. 1.

    var timer1 = setTimeout(function() { removeStatusIndicator(); }, statusTimeout);
    
    clearTimeout(timer1)
    

  2. 2.window.clearTimeout ()는 당신이 달성하려는 것을해야합니다.

    window.clearTimeout ()는 당신이 달성하려는 것을해야합니다.

  3. from https://stackoverflow.com/questions/452003/cancel-kill-window-settimeout-before-it-happens by cc-by-sa and MIT license