<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 οnlοad="refreshOnce()">