Skip to content

rainyjune/page-unload

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published