页面自动刷新
1.在html中可以添加:
<meta http-equiv="refresh" content="1"><!--每隔1秒自动刷新一次页面-->
2.在js中添加:
$(function () { function refresh() { history.go(0); } setTimeout(refresh(),1000); })//1s自动刷新一次
3.跳转指定页面:
<meta http-equiv="refresh" content="10;url=http://www.asd.com">