NotRestoredReasons: reasons 属性
NotRestoredReasons 接口的只读属性 reasons 返回一个 NotRestoredReasonDetails 对象的数组,每个对象都代表了被阻止使用后退/前进缓存(bfcache)的原因。
值
一个 NotRestoredReasonDetails 对象的数组。请参阅 阻止原因 来查看可能的阻止原因列表。
如果文档位于跨域的 <iframe> 中,reasons 将返回 null,但父文档可能会显示一个 reason 为 "masked" 的原因,如果任何 <iframe> 阻止了顶级帧的 bfcache 使用。
示例
有关示例,请参阅 Monitoring bfcache blocking reasons。
规范
| 规范 |
|---|
| HTML # dom-not-restored-reasons-reasons |
浏览器兼容性
加载中…