最佳答案
您更喜欢用哪种方式(使用按钮)重新加载当前页面?
1 <input type="button" value="Reload" onClick="history.go(0)">
2 <input type="button" value="Reload" onClick="location.reload(true)">
3 <input type="button" value="Reload" onClick="window.location.reload(true)">
4 <input type="button" value="Reload" onClick="window.location.href=window.location.href">
5 <input type="button" value="Reload" onClick="document.location.reload(true)">
6 <input type="button" value="Reload" onClick="document.location.href=document.location.href">
由于网页的 URL 经常变化 AFAIK 一个“回退功能”,如
<a href="urlOfCurrentPage.html" onclick="window.location.reload(true);return false;">Reload</a>
对我没用,对吧?