浏览器用户返回上一步,自动刷新
方式一、
<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");
方式三、
window.onpageshow = function(event) {
if (event.0) {
window.location.reload()
}
};

转载注明出处:https://www.cnblogs.com/cblogs/p/6126387.html

最新文章

  1. bzoj4691: Let There Be Light
  2. hdu 1429
  3. MySQL架构优化实战系列1:数据类型与索引调优全解析
  4. HDU 1556 Color the ball(线段树区间更新)
  5. SVN报Previous operation has not finished; run &#39;cleanup&#39; if it was interrupted错误的解决方法
  6. jquery tree events didn&#39;t work
  7. 利用 Gitbook 生成文档中心站点
  8. 《无懈可击的Web设计》_灵活的文字
  9. 【pyhton】import math与import cmath
  10. systemtap [主设备号,次设备好,inode]监控文件
  11. 在SQL中修改数据库名称
  12. 三步快速解决dll冲突问题
  13. LeetCode 40. Combination Sum II (组合的和之二)
  14. js原生的轮播,原理以及实践
  15. codeforce 337D Book of Evil ----树形DP&amp;bfs&amp;树的直径
  16. 深入理解 RPC
  17. ZJOI2008 生日聚会Party
  18. 淺談 Entity 的概念
  19. C# HttpWebRequest 笔记
  20. Linux学习笔记(第九章)

热门文章

  1. VirtualBox network / study environment setup for RHEL
  2. img 标签注意 默认img标签,有一个1px的边框 img{ border: 0; }
  3. HTTP中的header头解析说明
  4. UVA10905: Children&#39;s Game(排序)
  5. 使用Spring注解获取配置文件信息
  6. 创建发布Webservice以及wsimport工具
  7. EventFiringWebDriver网页事件监听(一)
  8. jQuery—$让渡
  9. 从两道题看go channel的用法
  10. 基于HTML5 FileSystem API的使用介绍(转)