小程序有此功能的跳转方法。
那么H5如何实现该功能? 很简单。
location.replace(‘new.html‘) 这个方法可以实现 关闭当前页面,跳转到新页面 的效果。
而 window.location.href = “new.html”, 这个方法会保留历史的访问记录。
原文地址:https://www.cnblogs.com/teamemory/p/10966471.html
时间: 2025-01-06 13:31:19
小程序有此功能的跳转方法。
那么H5如何实现该功能? 很简单。
location.replace(‘new.html‘) 这个方法可以实现 关闭当前页面,跳转到新页面 的效果。
而 window.location.href = “new.html”, 这个方法会保留历史的访问记录。
原文地址:https://www.cnblogs.com/teamemory/p/10966471.html