随笔分类 - koa源码
摘要:const isGeneratorFunction = require('is-generator-function'); const debug = require('debug')('koa:application'); /** * Use the given middleware `fn`.
阅读全文
摘要:用reduce去遍历得出对象
阅读全文
摘要:const http = require('http'); listen(...args) { debug('listen'); const server = http.createServer(this.callback()); return server.listen(...args); } c
阅读全文

浙公网安备 33010602011771号