Events Mobile safari隐藏/关闭事件
我正在寻找一种方法来跟踪用户何时通过按下home按钮或切换选项卡隐藏mobile safari。这不会触发onunload事件,因为选项卡没有关闭,它只是放在后台Events Mobile safari隐藏/关闭事件,events,mobile-safari,iphone,Events,Mobile Safari,Iphone,我正在寻找一种方法来跟踪用户何时通过按下home按钮或切换选项卡隐藏mobile safari。这不会触发onunload事件,因为选项卡没有关闭,它只是放在后台 mobile safari会触发此事件吗?因此,事实证明确实会触发“pagehide”和“pageshow”事件。仅在4.x上测试+
mobile safari会触发此事件吗?因此,事实证明确实会触发“pagehide”和“pageshow”事件。仅在4.x上测试+