Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有一个正在运行的应用程序,http://example.com我可以使用以下内容:
http://example.com
window.history.replaceState({}, null, '#5')
用 更新我的地址栏http://example.com/#5。
http://example.com/#5
是否可以撤消此操作?使用JS,地址栏可以恢复原状吗?