H5如何实现该功能?
1、 这个方法就能实现:location.replace("index.html") 有关闭当前页面,跳转到新页面 的效果。
2、 而我们常用的 window.location.href = “index.html”, 这个方法会保留历史的访问记录。
声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
H5如何实现该功能?
1、 这个方法就能实现:location.replace("index.html") 有关闭当前页面,跳转到新页面 的效果。
2、 而我们常用的 window.location.href = “index.html”, 这个方法会保留历史的访问记录。