浏览器用户返回上一步,自动刷新
Posted 地球上的我
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了浏览器用户返回上一步,自动刷新相关的知识,希望对你有一定的参考价值。
方式一、 <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");
以上是关于浏览器用户返回上一步,自动刷新的主要内容,如果未能解决你的问题,请参考以下文章