nodeEventTarget.removeListener(type, listener[, options])
type<string>listener<Function> | <EventListener>options<Object>capture<boolean>
- 返回:<EventTarget> this
Node.js 特定的 EventTarget 类扩展,用于移除给定 type 的 listener。removeListener() 和 removeEventListener() 之间唯一的区别是,removeListener() 会返回一个 EventTarget 的引用。
🌐 Node.js-specific extension to the EventTarget class that removes the
listener for the given type. The only difference between removeListener()
and removeEventListener() is that removeListener() will return a reference
to the EventTarget.