1.查看当前路径全部信息直接输出
console.log(location)
2.路径路由跳转(直接在window.location.href填上对应的路径就可以)
window.location.href = location.origin + location.hash
-
-
巨方便
console.log(location)
window.location.href = location.origin + location.hash
-
-
巨方便