Home >Web Front-end >JS Tutorial >jQuery scheduled partial refresh (setInterval)_jquery

jQuery scheduled partial refresh (setInterval)_jquery

WBOY
WBOYOriginal
2016-05-16 18:15:561246browse
复制代码 代码如下:



<script> <br>$(document).ready(function () { <br>setInterval("startRequest()",1000); <br>}); <br>function startRequest() <br>{ <br>$("#date").text((new Date()).toString()); <br>} <br></script>

Statement:
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