1.window.open 和 location.href得区别 location.href不会记录到history里就是点击后退键 不会有这个过程
2.js 删除浏览器 url参数
let url = window.location.href
if (url.indexOf('?') !== -1) {
url = url.replace(/(\?|#)[^'"]*/, '')
window.history.pushState({}, 0, url)
}