Home >Web Front-end >JS Tutorial >A brief discussion on the setInterval event of js_Basic knowledge
The setInterval() method will keep calling the function until clearInterval() is called or the window is closed. The ID value returned by setInterval() can be used as an argument to the clearInterval() method.
setinterval() usage
setInterval(code,millisec[,"lang"])
The following two parameters code is your js code, millisec is the time interval, measured in milliseconds