nodeEventTarget.addListener(type, listener[, options])


    EventTarget 类的 Node.js 特定扩展,可模拟等效的 EventEmitter API。 addListener()addEventListener() 之间的唯一区别是 addListener() 将返回对 EventTarget 的引用。

    Node.js-specific extension to the EventTarget class that emulates the equivalent EventEmitter API. The only difference between addListener() and addEventListener() is that addListener() will return a reference to the EventTarget.