Skip to content

Home > robinson > EventBus > clear

EventBus.clear() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

clear 函数从 eventObj 对象中删除事件。

Signature:

typescript
clear(eventName: string): void;
clear(eventName: string): void;

Parameters

ParameterTypeDescription
eventNamestringeventName 参数是一个字符串,表示要清除的事件的名称。

Returns:

void

Released under the MIT License.