PHP页面自动刷新可借助JS来实现,简单示例如下:<?php echo "系统当前时间戳为:";echo "<br/>";echo time();//<!--JS 页面自动刷新 -->echo ("<script type=\"text/javascript\">");echo ("function fresh_page()"); echo ("{");echo ("window.location.reload();");echo ("}"); echo ("setTimeout('fresh_page()',1000);"); echo ("</script>");?>
顶一下

(0)
0%
踩一下

(0)
0%
- 相关评论
- 我要评论
-