The Time object represents an HTML <time> element.
You can access a <time> element by using getElementById():
You can create a <time> element by using the document.createElement() method:
Property | Description |
---|---|
dateTime | Sets or returns the value of the datetime attribute in a <time> element |
The Time object also supports the standard properties and events.
HTML reference: HTML <time> tag
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!