From 6db6ef520b9f6246233f637f7c9b9b3ff282859a Mon Sep 17 00:00:00 2001 From: MDN Date: Sat, 5 Feb 2022 00:44:51 +0000 Subject: [CRON] sync translated content --- .../web/api/texttrack/cuechange_event/index.html | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 files/zh-cn/web/api/texttrack/cuechange_event/index.html (limited to 'files/zh-cn/web/api/texttrack') diff --git a/files/zh-cn/web/api/texttrack/cuechange_event/index.html b/files/zh-cn/web/api/texttrack/cuechange_event/index.html new file mode 100644 index 0000000000..a0753d6718 --- /dev/null +++ b/files/zh-cn/web/api/texttrack/cuechange_event/index.html @@ -0,0 +1,52 @@ +--- +title: GlobalEventHandlers.oncuechange +slug: Web/API/TextTrack/cuechange_event +tags: + - API + - Event Handler + - GlobalEventHandlers + - 事件处理函数 +translation_of: Web/API/GlobalEventHandlers/oncuechange +original_slug: Web/API/GlobalEventHandlers/oncuechange +--- +
{{ ApiRef("HTML DOM") }}
+ +
oncuechange 属性属于{{domxref("GlobalEventHandlers")}},是一个处理{{event("cuechange")}}事件的{{event("Event_handlers", "event handler")}}。
+ +
当{{domxref("TextTrack")}}更改了当前显示的提示时,cuechange 事件将会触发。
+ +

语法

+ +
element.oncuechange = handlerFunction;
+var handlerFunction = element.oncuechange;
+
+ +

handlerFunction 可以为 null,也可以是一个处理指定事件的JavaScript函数

+ +

规范

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG','#handler-oncuechange','oncuechange')}}{{Spec2('HTML WHATWG')}} 
+ +

浏览器兼容性

+ +

{{Compat("api.GlobalEventHandlers.oncuechange")}}

+ +

查看更多

+ + -- cgit v1.2.3-54-g00ecf