首页 > 其他 > 详细

浏览器用户返回上一步,自动刷新

时间:2017-07-07 19:00:50      阅读:412      评论:0      收藏:0      [点我收藏+]
方式一、
<input type="hidden" id="refreshed" value="no">
<script type="text/javascript">
onload=function(){
var e=document.getElementById("refreshed");
if(e.value=="no")e.value="yes";
else{e.value="no";location.reload();}
}
</script >
方式二、
header("Cache-Control: no-store, must-revalidate, max-age=0");
header("Pragma: no-cache");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");

浏览器用户返回上一步,自动刷新

原文:http://www.cnblogs.com/zjdeblog/p/7133497.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!