阅读背景:

Node.js:进行模块继承的正确方法是什么?

来源:互联网 

Background

背景

I'm making a simple web server using express.js on top of node.js. When I'm making the route handlers for my server I inevitably have to factor out some common functionalities. So I want to make a baseHandler which has all the common handler functionalities like DB connection, and when I'm writing other route handlers I want to 'extend' the baseHandler to conveniently obtain those common handler capabilities.I'm making a simple web serve




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

分享到: