开发者

Reload page using prototype

Is there a way to reload a page using prototype 开发者_运维知识库(or redirect to itself)?


You shouldn't need a Javascript Library for this. A simple:

window.location.reload();

or

window.location.href = window.location.href;

should suffice.


I doubt it. It seems rather pointless to write a helper function for something as simple as location.reload(true); when it really isn't used very often.


window.location.href = window.location.href;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜