将以下代码加入到<head></head>之间,即可实现定时刷新。<meta http-equiv="refresh" content="10" /> //10秒刷新一次注:必须浏览器打开当前页面的情况下才可以实现自动刷新。