メソッド
addEventListener()
addEventListener(type:イベントリスナーを追加します。string, listener: EventListener, options?:boolean | AddEventListenerOptions | undefined):void
パラメーター
type
string
リッスンするイベント。
listener
EventListener イベントハンドラー関数。options?
boolean | AddEventListenerOptions | undefined
無視されます。
removeEventListener()
removeEventListener(type:イベントリスナーを削除します。string, listener: EventListener, options?:boolean | EventListenerOptions | undefined):void
パラメーター
type
string
リッスンするイベント。
listener
EventListener 削除するイベントハンドラー関数。options?
boolean | EventListenerOptions | undefined
無視されます。
dispatchEvent()
dispatchEvent(event: Event): boolean
ターゲットにイベントをディスパッチします
パラメーター
event
Event 発生を知らせるイベント。実装に追加して定義します。現時点ではオプションのままにしておきます。戻り値
boolean
