hide variables passed in URL

后端 未结 4 1100
情深已故
情深已故 2021-01-05 05:12

We\'ve been working on a web application and we\'ve just about got it finished up, but there\'s one thing that bothering us (although by no means is it going to stop product

4条回答
  •  -上瘾入骨i
    2021-01-05 05:43

    You can use the History API, but it does require a modern browser

    history.replaceState({}, null, "/index.html");
    

    That will cause your URL to appear as /index.html without reloading the page

    More information here:

    Manipulated the browser history

提交回复
热议问题