nodeEventTarget.once(type, listener)
type<string>listener<Function> | <EventListener>- 返回:<EventTarget> this
Node.js 特定的 EventTarget 类扩展,为给定的事件 type 添加一个 once 监听器。这相当于调用 on 并将 once 选项设置为 true。
🌐 Node.js-specific extension to the EventTarget class that adds a once
listener for the given event type. This is equivalent to calling on
with the once option set to true.