开发者

How to detect when Mobile Safari is closed?

开发者 https://www.devze.com 2023-01-18 06:00 出处:网络
$(window).bind(\'beforeunload\',function(){ alert(\'closing\'); }) Above code only seems to work for desktop browsers开发者_运维技巧.You can do alerts on unload, but mobile safari doesn\'t seem t
 $(window).bind('beforeunload',function(){
 alert('closing');
 })

Above code only seems to work for desktop browsers开发者_运维技巧.


You can do alerts on unload, but mobile safari doesn't seem to have beforeunload.

0

精彩评论

暂无评论...
验证码 换一张
取 消