history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
history.pushState(a, b, c) 修改网站浏览的历史记录,共接收三个参数
a存储JSON字符串,b标题名,c修改的地址(不能跨域)
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
history.pushState(a, b, c) 修改网站浏览的历史记录,共接收三个参数
a存储JSON字符串,b标题名,c修改的地址(不能跨域)