移除全部监听器或指定的 eventName 事件的监听器。

注意,删除代码中其他位置添加的监听器是不好的做法,尤其是当 EventEmitter 实例是由某些其他组件或模块(例如套接字或文件流)创建时。

返回对 EventEmitter 的引用,以便可以链式调用。

Removes all listeners, or those of the specified eventName.

Note that it is bad practice to remove listeners added elsewhere in the code, particularly when the EventEmitter instance was created by some other component or module (e.g. sockets or file streams).

Returns a reference to the EventEmitter, so that calls can be chained.