开发者

Remove specific param from url in javascript

开发者 https://www.devze.com 2023-04-03 02:12 出处:网络
Is there some way I can remove one specific parameter from url in javascript witho开发者_运维知识库ut reloading the page with document.location.search = newParams; ?You can do so with HTML5 pushState,

Is there some way I can remove one specific parameter from url in javascript witho开发者_运维知识库ut reloading the page with document.location.search = newParams; ?


You can do so with HTML5 pushState, which only works in modern browsers. An alternative is to change location.hash, which does not reload the page.

0

精彩评论

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