You use that value to cancel the interval with the clearInterval() method: ... we hit 0 if (counter < 0) { clearInterval(intervalId); console.log("All done!
確定! 回上一頁