EventTarget
EventTarget
https://dom.spec.whatwg.org/#interface-eventtarget
扩展自
MediaKeySessionSourceBufferMediaSourceInterfaceTextTrackCueAudioTrackListVideoTrackListTextTrackList
方法
addEventListener()
addEventListener(
type,listener,options?):void
添加事件侦听器。
参数
type
string
要侦听的事件。
listener
事件处理程序函数。
options?
忽略。
boolean |
AddEventListenerOptions |
返回值
void
dispatchEvent()?
optionaldispatchEvent(event):boolean
向目标分发事件
参数
event
发出事件信号的事件。
返回值
boolean
待办事项
在实现中添加和定义,暂时将其保留为可选。
removeEventListener()
removeEventListener(
type,listener,options?):void
删除事件侦听器。
参数
type
string
要侦听的事件。
listener
要删除的事件处理程序函数。
options?
忽略。
boolean |
EventListenerOptions |
返回值
void
Last updated: 2025年10月2日

