第一步:创建一个空白页面AutoRefresh.aspx,在 <HEAD> </HEAD>加入
<script type="text/javascript">setTimeout("location.href='AutoRefresh.aspx' ",120000) </script>
120000代表2分钟自动刷新一次
第二步:将这个页面'AutoRefresh.aspx' 用框架包含到显示的主页面内就可以了
<iframe width="1" height="1" src="AutoRefresh.aspx"> </iframe>
解决session丢失的一个无赖招数
最新推荐文章于 2020-09-29 14:14:08 发布