<input type=button value=刷新 onclick="history.go(0)">
<input type=button value=刷新 onclick="location.reload()">
<input type=button value=刷新 onclick="location=location">
<input type=button value=刷新 onclick="location.assign(location)">
<input type=button value=刷新 onclick="document.execCommand('Refresh')">
<input type=button value=刷新 onclick="window.navigate(location)">
<input type=button value=刷新 onclick="location.replace(location)">
<input type=button value=刷新 onclick="window.open('自身的文件','_self')">
<input type=button value=刷新 onClick=document.all.WebBrowser.ExecWB(22,1)>
本文介绍了多种使用不同JavaScript方法实现网页刷新的技术,包括利用history、location对象及其方法如reload、assign等,还有document与window对象的相关操作。这些方法适用于不同的场景需求。
1326

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



