eventTarget.dispatchEvent(event)
event
<Event>- 返回: <boolean> 如果任一事件的
cancelable
属性值为 false 或未调用其preventDefault()
方法,则为true
,否则为false
。
将 event
调度到 event.type
的句柄列表。
注册的事件监听器按照注册的顺序同步地调用。
event
<Event>- Returns: <boolean>
true
if either event’scancelable
attribute value is false or itspreventDefault()
method was not invoked, otherwisefalse
.
Dispatches the event
to the list of handlers for event.type
.
The registered event listeners is synchronously invoked in the order they were registered.