javascript 刷新页面方法整理
history.go(0)
location.reload()location=location
location.assign(location)
document.execCommand('Refresh')
window.navigate(location)
location.replace(location)
document.URL=location.href
javascript重定向方法整理
window.location.href = "http://www.baidu.com";
document.location.href = "http://www.baidu.com";
window.location= "http://www.baidu.com";
document.location= "http://www.baidu.com";
location="http://www.baidu.com";
本文详细整理了JavaScript中用于刷新页面和重定向的方法,包括但不限于history.go(0)、location.reload()等常用技巧。
867

被折叠的 条评论
为什么被折叠?



