随笔分类 -  koa源码

摘要:const isGeneratorFunction = require('is-generator-function'); const debug = require('debug')('koa:application'); /** * Use the given middleware `fn`. 阅读全文
posted @ 2020-06-12 07:10 TTtttt5 阅读(110) 评论(0) 推荐(0)
摘要:用reduce去遍历得出对象 阅读全文
posted @ 2020-06-12 07:02 TTtttt5 阅读(94) 评论(0) 推荐(0)
摘要:const http = require('http'); listen(...args) { debug('listen'); const server = http.createServer(this.callback()); return server.listen(...args); } c 阅读全文
posted @ 2020-06-12 06:55 TTtttt5 阅读(382) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-06-12 06:52 TTtttt5 阅读(82) 评论(0) 推荐(0)