2015-06-17 javascript JS自动刷新页面一次 12345678<script type="text/javascript"> //刷新页面 if(location.href.indexOf("refresh=1") === -1) { setTimeout(function() { location = location.href + "?refresh=1" },1) } </script> 或者 12345678910<script type="text/javascript"> //刷新页面 function refreshOnce(){ if (location.href.indexOf("?xyz=") < 0) { location.href = location.href + "?xyz=" + Math.random(); } } </script> <body onload="refreshOnce()"> 前一篇 PopupWindow和AlertDialog区别 后一篇 完美解决Android SDK Manager无法更新