JavaScript 在不刷新或跳转页面的情况下改变当前浏览器地址栏上的网址
var stateObject = {};
var title = "改变后的网址的标题";
var newUrl = "/my/awesome/url";
history.pushState(stateObject,title,newUrl);
2022-11-29 08:25:37
JavaScript 在不刷新或跳转页面的情况下改变当前浏览器地址栏上的网址
var stateObject = {};
var title = "改变后的网址的标题";
var newUrl = "/my/awesome/url";
history.pushState(stateObject,title,newUrl);