Yes you can. You can even test it: var i = 0; var timer = setInterval(function() { console.log(++i); if (i === 5) clearInterval(timer); ...
確定! 回上一頁