window.history.go(0)
window.location.reload()
window.location.href=location.href
window.location.assign(location.href)
document.execCommand('Refresh')
window.navigate(location.href)
window.navigate("#pos");
window.location.replace(location.href)
window.open('自身的文件','_self')
-------------
location.reload(flag)
flag =true 不从缓存读取
=false 从缓存读取
window.location.reload()
window.location.href=location.href
window.location.assign(location.href)
document.execCommand('Refresh')
window.navigate(location.href)
window.navigate("#pos");
window.location.replace(location.href)
window.open('自身的文件','_self')
-------------
location.reload(flag)
flag =true 不从缓存读取
=false 从缓存读取
页面刷新方法大全
本文汇总了多种用于浏览器页面刷新的方法,包括使用history、location对象及其属性和方法等,旨在帮助开发者了解并掌握不同场景下的页面刷新技巧。
144

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



