document.location.reload();与location.href='xxx'的区别

document.location.reload();会重新加载页面,onload事件会被触发。

location.href='xxx'刷新页面,onload事件不会触发。

posted @ 2013-12-02 23:36  于辰  阅读(1345)  评论(0编辑  收藏  举报