#17257·kit

无条件注册 `beforeunload` 监听器

作者: teemingc创建于 2026年9月29日更新于 2026年9月29日
标签breaking change

Google 和 Mozilla 都不建议无条件注册 beforeunload 监听器。目前我们正在这样做,无论是否使用 beforeNavigate 中的 cancel 来拦截页面关闭(如 此评论 中所暗示的)。我们可以: