页面加载完成后再刷新一次
<script>
window.οnlοad=function(){
if (location.href.indexOf("?xyz=")<0)
{
alert(123);
location.href=location.href+"?xyz="+Math.random();
}
}
</script>
<script>
window.οnlοad=function(){
if (location.href.indexOf("?xyz=")<0)
{
alert(123);
location.href=location.href+"?xyz="+Math.random();
}
}
</script>