GlobalEventHandlers.oncuechange
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
io error: No such file or directory (os error 2) (/home/runner/work/yari/yari/mdn/translated-content/files/zh-cn/web/api/texttrack/index.md)
oncuechange
属性属于 GlobalEventHandlers
,是一个处理 cuechange
事件的事件处理器。当TextTrack
更改了当前显示的提示时,cuechange
事件将会触发。
语法
js
element.oncuechange = handlerFunction;
var handlerFunction = element.oncuechange;
handlerFunction
可以为 null
,也可以是一个处理指定事件的JavaScript 函数。
规范
Specification |
---|
HTML Standard # event-media-cuechange |
HTML Standard # handler-texttrack-oncuechange |
浏览器兼容性
BCD tables only load in the browser