2
可能重複:
Is there a way to check if a var is using setInterval() ?如果setInterval被清除?
我怎麼能檢查是否一個的setInterval被清除?
var i = 0;
var refreshLoop = setInterval(function(){
i++;
}, 250);
clearInterval(refreshLoop);