无法在pagehide事件上显示阻止

时间:2015-07-07 08:09:08

标签: javascript ios mobile

我需要在浏览器在页面之间切换时显示预加载器块。 关于ios事件正在处理,并且可以显示“警报”,但DOM操作似乎不起作用。

// Bind a change handler to the window location.
$(window).bind('pagehide', function(){
  alert('pagehide fired');
  $(target).show();
});

0 个答案:

没有答案