Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
window.location.reload()追加不可window.history.go(-1)?このような
window.location.reload()
window.history.go(-1)
<input type="button" value="Back" onclick="window.history.go(-1), window.location.reload()">
一度に 2 つのブラウザー イベントを発生させることはできないため、ロジックを配置する必要があります。
window.location.reload() を起動する
次に、イベントをキャプチャしてページを更新するページで、そのような条件は基本的にマスターテンプレートまたは共通の Js ファイルに含まれます。これは、Jquery を使用して実現できます。