Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 1.61 KB

README.md

File metadata and controls

14 lines (11 loc) · 1.61 KB

page-unload

测试浏览器页面关闭/离开时的事件触发情况。

场景 MacOS Chrome MacOS Safari iPad Safari iOS 12.1.3 Android 9 Chrome Android 8 QQ X5 内核 IE 6
链接跳转 1.onbeforeunload
2.onpagehide
3.onunload
1.onbeforeunload
2.onpagehide
1.onpagehide 1.onbeforeunload
2.onpagehide
3.onunload
1.onpagehide 1.onbeforeunload
2.onunload
页面刷新 1.onbeforeunload
2.onpagehide
3.onunload
1.onbeforeunload
2.onpagehide
3.onunload
1.onpagehide
2.onunload
1.onbeforeunload
2.onpagehide
3.onunload
1.onbeforeunload
2.onpagehide
3.onunload
1.onbeforeunload
2.onunload
前进/后退按钮 1.onbeforeunload
2.onpagehide
3.onunload
1.onbeforeunload
2.onpagehide
1.onpagehide 1.onbeforeunload
2.onpagehide
3.onunload
1.onpagehide 1.onbeforeunload
2.onunload