How to remove parameters in URL and display it in address bar without causing redirect in Javascript?

前端 未结 5 1086
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-11 03:36

I have found numerous answers on how to extract the URL without the parameters.

How do you rewrite the URL in the address bar without causing the page to reload with

5条回答
  •  借酒劲吻你
    2020-12-11 04:37

    I don't think that there is a possibility for that, I mean you probably could rewrite the URL after its loaded and add return false, so you prevent the reload but otherwise you would have to do a form POST on the url to achieve that no parameter is shown.

提交回复
热议问题