H5如何实现该功能?
1、 这个方法就能实现:location.replace("index.html") 有关闭当前页面,跳转到新页面 的效果。
2、 而我们常用的 window.location.href = “index.html”, 这个方法会保留历史的访问记录。
H5如何实现该功能?
1、 这个方法就能实现:location.replace("index.html") 有关闭当前页面,跳转到新页面 的效果。
2、 而我们常用的 window.location.href = “index.html”, 这个方法会保留历史的访问记录。