Document:timeline 属性
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2020.
Document
接口的 timeline
只读属性表示当前文档的默认时间轴。此时间轴是 DocumentTimeline
的一个特殊实例。
此时间轴对于每个文档(document
)来说都是唯一的,并在文档的生命周期中持续存在,包括调用了 Document.open()
的情况。
此时间轴以毫秒为单位表示自 Performance.timeOrigin
以来经过的时间。在时间原点(time origin)之前,时间轴为非活动状态,它的 currentTime
值为 null
。
值
一个 DocumentTimeline
对象。
规范
Specification |
---|
Web Animations # dom-document-timeline |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
timeline |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.