文档:timeline 属性
Document 接口的只读属性 timeline 表示当前文档的默认时间线。此时间线是 DocumentTimeline 的一个特殊实例。
此时间线对每个 document 都是唯一的,并且在其生命周期内(包括调用 Document.open())都会持续存在。
此时间线以自 Performance.timeOrigin 以来的毫秒数为单位表示时间。在时间原点之前,时间线处于非活动状态,其 currentTime 为 null。
注意:与非活动文档(未与 Window、<iframe> 或 <frame> 关联的 Document)关联的文档时间线也被视为非活动状态。