emitter.listenerCount(eventName[, listener])


返回监听名为 eventName 的事件的监听器数量。如果提供了 listener,它将返回在事件的监听器列表中找到监听器的次数。

¥Returns the number of listeners listening for the event named eventName. If listener is provided, it will return how many times the listener is found in the list of the listeners of the event.