setTimeout(code, millisec) //- Execute the code after the specified time
code is required;
millisec is required;
clearTimeout(setTimeoutId) //- Cancel setTimeout()
setInterval(code, millisec); //Loop the execution code within the specified interval milliseconds
code is required;
millisec is required;
clearInterval(intervalId) ;
Use setTimeout(code, millisec) to achieve the setInterval effect, you only need to nest the calling method;
The following is a countdown page