history.replaceState(null, document.title, ‘要修改的链接’);
转载于:https://www.cnblogs.com/yangchong/p/6382108.html
本文介绍如何使用history.replaceState方法来修改浏览器的历史记录状态,包括更改当前页面的URL,而不触发页面跳转。这对于单页应用更新URL路径非常有用。
history.replaceState(null, document.title, ‘要修改的链接’);
转载于:https://www.cnblogs.com/yangchong/p/6382108.html
1946
1165
451
793

被折叠的 条评论
为什么被折叠?