<script type="text/javascript"> //刷新页面 if(location.href.indexOf("refresh=1") === -1) { setTimeout(function() { location = location.href + "?refresh=1" },1) } </script>
或者
<script type="text/javascript"> //刷新页面 function refreshOnce(){ if (location.href.indexOf("?xyz=") < 0) { location.href = location.href + "?xyz=" + Math.random(); } } </script> <body onload="refreshOnce()">
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/14542.html