阅读背景:

用于获取执行上下文的Node.js编程模式

来源:互联网 

I am writing a web app in node.js. Now every processing on the server is always in the context of a session which is either retrieved or created at the very first stage when the request hits the server. After this the execution flows through multiple modules and callbacks within them. What I am struggling with is in creating a programming pattern so that at any point in the code the session object is available without the programmer requiring it to pass it as an argument in each function call.I am writing a web app in node.js. Now every pr




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

分享到: