阅读背景:

构造函数用作事件发射器

来源:互联网 

I would like to write a constructor function for some work I'm doing in node.js. Amongst other things, I'd like to log the number of instances it creates using an event emitter. At the moment I do this by giving the constructor object a method which is an event emitter. For example:I would like to write a constructor function fo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: