且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

可以使用javascript重写URL客户端而无需重新加载页面

更新时间:2023-11-04 15:35:16

你可以改变哈希/锚定网址的一部分(在#之后)。 URL的其余部分是只读的。

You can change the hash/anchor part of the URL (after #). The rest of the URL is readonly.

location.hash = "#value";