Skip to main content
Version: 23.8.0

CommonEventEmitter.once() 方法

¥CommonEventEmitter.once() method

签名

¥Signature

interface CommonEventEmitter {
once<Key extends keyof Events>(
type: Key,
handler: Handler<Events[Key]>,
): this;
}

参数

¥Parameters

范围

类型

描述

type

handler

处理程序<事件[按键]>

Returns:

this