javascript间隔刷新的简单实例
内容摘要
复制代码 代码如下:
<script language="JavaScript">
function myrefresh()
{
window.location.reload();
}
setTimeout('myrefresh()',5000); //指定5秒刷新一次,5000
<script language="JavaScript">
function myrefresh()
{
window.location.reload();
}
setTimeout('myrefresh()',5000); //指定5秒刷新一次,5000
文章正文
复制代码 代码如下:
<script language="JavaScript">
function myrefresh()
{
window.location.reload();
}
setTimeout('myrefresh()',5000); //指定5秒刷新一次,5000处可自定义设置,1000为1秒
</script>
代码注释