< ;html> setInterval("test()",1000); function test () { var a= new Date(); < ;/span>document.getElementById("time").innerHTML= a; }
span>
I don’t know what setInterval means, so Baidu Down.
Found this to mean:
The setInterval() method can call a function or calculate an expression according to the specified period (in milliseconds). 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.
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn