开发者

Reload page using prototype

开发者 https://www.devze.com 2022-12-25 14:50 出处:网络
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:

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

精彩评论

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