js 定时刷新页面

<script type="text/javascript">
function reget(){
var r=parseInt(Math.random()*100);
var myurl=window.location.href.split("?");
window.location.href=myurl[0]+"?"+r;
}
setTimeout(reget,60000)
</script>

posted @ 2013-02-25 19:36  闫森  阅读(196)  评论(0编辑  收藏  举报