Track 对象表示 HTML <track> 元素。
您可以使用 getElementById() 访问 <track> 元素:
var x = document.getElementById("myTrack");
您可以使用 document.createElement() 方法创建 <track> 元素:
var x = document.createElement("TRACK");
Property | Description |
---|---|
default | Sets or returns the default state of the track |
kind | Sets or returns the value of the kind attribute of the track |
label | Sets or returns the value of the label attribute of the track |
readyState | Returns the current state of the track resource |
src | Sets or returns the value of the src attribute of the track |
srclang | Sets or returns the value of the srclang attribute of the track |
track | Returns a TextTrack object representing the track element's text track data |
HTML 参考:HTML <track> 标签
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!