- pushState在当前history的中添加一条记录
window.history.pushState(null, null, '1.html');
- replaceState替换当前中history的记录
window.history.replaceState(null, null, '1.html');
- 跳转
history.go(1) //前进一个页面
history.go(-1) //后退一个页面
- 获取用户浏览器的相关信息
console.log(navigator);