--- title: GlobalEventHandlers.onloadeddata slug: Web/API/GlobalEventHandlers/onloadeddata tags: - API - 事件句柄 translation_of: Web/API/GlobalEventHandlers/onloadeddata ---
{{domxref("GlobalEventHandlers")}}的onloadeddata
属性是事件 {{event("loadeddata")}}的处理{{event("Event_handlers", "event handler")}} 。
loadeddata
事件当媒体资源的第一帧加载完成时被触发。
element.onloadeddata = handlerFunction; var handlerFunction = element.onloadeddata;
handlerFunction
is either null
or a JavaScript function specifying the handler for the event.
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG','#handler-onloadeddata','onloadeddata')}} | {{Spec2('HTML WHATWG')}} |
{{Compat("api.GlobalEventHandlers.onloadeddata")}}