【问题标题】:In the Navigation Timing API, why does the unload event fire during the load of the destination page?在 Navigation Timing API 中,为什么在加载目标页面时会触发 unload 事件?
【发布时间】:2013-10-18 08:48:30
【问题描述】:

为什么卸载事件出现在序列的特定部分?

【问题讨论】:

    标签: http navigation w3c


    【解决方案1】:

    卸载事件是用户从一个页面转换到另一个页面时触发的初始事件。如果在beforeUnload 阶段有任何synchronous requests,则随后的卸载阶段将解除它们的绑定并清空DOM,作为对当前页面的请求的一部分。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-29
      相关资源
      最近更新 更多