js修改当前网页地址栏

history.replaceState(null, document.title, ‘要修改的链接’);
原文地址:https://www.cnblogs.com/yangchong/p/6382108.html