现在,您可以在大多数“现代”浏览器中执行此操作!
要更深入地了解pushState / replaceState /popstate(又称HTML5历史API)。
TL; DR,您可以执行以下操作:
window.history.pushState("object or string", "Title", "/new-url");
现在,您可以在大多数“现代”浏览器中执行此操作!
要更深入地了解pushState / replaceState /popstate(又称HTML5历史API)。
TL; DR,您可以执行以下操作:
window.history.pushState("object or string", "Title", "/new-url");