读koa源码时候看到
/**
* Inherit from `Emitter.prototype`.
*/
Object.setPrototypeOf(Application.prototype, Emitter.prototype);
这种继承方式有什么好处吗?
守候你守候我
相关分类