如何使用JavaScript或HTML刷新页面?


当前回答

window.location.reload ();在JavaScript中

<meta http-equiv="refresh" content="1"> HTML(其中1 = 1秒)。

其他回答

window.location.reload ();在JavaScript中

<meta http-equiv="refresh" content="1"> HTML(其中1 = 1秒)。

window.location.reload()

应该工作,但有许多不同的选项,如:

window.location.href=window.location.href

你也可以使用

<input type="button" value = "Refresh" onclick="history.go(0)" />

这对我来说很有效。

Use:

window.location.reload();

试试这个效果很好

jQuery("body").load(window.location.href);