js 怎么监听到页面关闭或页面跳转事件

2025-05-10 03:09:34
推荐回答(1个)
回答1:

Onunload,onbeforeunload都是在刷新或关闭时调用,可以在