From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../oncanplaythrough/index.html | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 files/zh-cn/web/api/globaleventhandlers/oncanplaythrough/index.html (limited to 'files/zh-cn/web/api/globaleventhandlers/oncanplaythrough/index.html') diff --git a/files/zh-cn/web/api/globaleventhandlers/oncanplaythrough/index.html b/files/zh-cn/web/api/globaleventhandlers/oncanplaythrough/index.html new file mode 100644 index 0000000000..6e478aa535 --- /dev/null +++ b/files/zh-cn/web/api/globaleventhandlers/oncanplaythrough/index.html @@ -0,0 +1,25 @@ +--- +title: GlobalEventHandlers.oncanplaythrough +slug: Web/API/GlobalEventHandlers/oncanplaythrough +translation_of: Web/API/GlobalEventHandlers/oncanplaythrough +--- +
{{ ApiRef("HTML DOM") }}
+ +

全局事件处理器({{domxref("GlobalEventHandlers")}} )之一的 {{event("canplaythrough")}} 属性,是处理当前元素{{event("canplaythrough")}} 事件的事件处理器{{domxref("EventHandler")}} .

+ +

当用户代理可以播放媒体资源并且可以播放至其结束而不必进一步缓冲内容时,触发canplaythrough事件。

+ +

语法

+ +
element.oncanplaythrough = handlerFunction;
+var handlerFunction = element.oncanplaythrough;
+
+ +

 

+ +

相关链接

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