EventListener
方法
handleEvent()
method is called by the
用户代理
when an event is sent to the
EventListener
, in order to handle events that occur on an observed
EventTarget
.
eventListener.handleEvent(event);
event
事件
object describing the event that has been fired and needs to be processed.
undefined
. If you return a value, the browser will ignore it.
| 规范 | 状态 | 注释 |
|---|---|---|
|
DOM
The definition of 'EventListener.handleEvent()' in that specification. |
实时标准 | 无变化。 |
|
DOM (文档对象模型) 2 级事件规范
The definition of 'EventListener.handleEvent()' in that specification. |
过时 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
handleEvent
|
Chrome 1 | Edge 12 | Firefox 1 | IE 9 | Opera 7 | Safari 1 | WebView Android 1 | Chrome Android 18 | Firefox Android 4 | Opera Android 10.1 | Safari iOS 1 | Samsung Internet Android 1.0 |
完整支持
EventListener
handleEvent()