此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
HTMLTimeElement
 
 
 
 Baseline
 
 Widely available
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2017年10月.
HTMLTimeElement 接口提供用于操作 <time> 元素的特定属性(除了常规 HTMLElement 接口之外,它还可以通过继承来使用)。
实例属性
从其父接口 HTMLElement 继承属性。
HTMLTimeElement.dateTime- 
一个反映
datetimeHTML 属性的字符串,包含元素日期和时间值的机器可读形式。 
实例方法
无特定方法;从其父接口 HTMLElement 继承方法。
规范
| Specification | 
|---|
| HTML> # htmltimeelement>  | 
 
浏览器兼容性
Loading...
参见
- 实现此接口的 HTML 元素:
<time>。