开发者

Remove specific param from url in javascript

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜