nodeEventTarget.removeAllListeners([type])
type<string>- 返回:<EventTarget> this
Node.js 特定的 EventTarget 类扩展。如果指定了 type,则移除该类型的所有已注册监听器,否则移除所有已注册的监听器。
🌐 Node.js-specific extension to the EventTarget class. If type is specified,
removes all registered listeners for type, otherwise removes all registered
listeners.