栈的概念?

来源:3-3 Koa中间件

慕莱坞1975833

2018-10-20

洋葱模型是栈的概念吗

写回答

1回答

快乐动起来呀

2018-10-20

不是的

0
1
夏筱晗
use(fn) { if (typeof fn !== 'function') throw new TypeError('middleware must be a function!'); if (isGeneratorFunction(fn)) { deprecate('Support for generators will be removed in v3. ' + 'See the documentation for examples of how to convert old middleware ' + 'https://github.com/koajs/koa/blob/master/docs/migration.md'); fn = convert(fn); } debug('use %s', fn._name || fn.name || '-'); this.middleware.push(fn); return this; } 这里面的this.middleware.push(fn)怎么解释呢?和next有什么关系呢?
2019-05-13
共1条回复

Vue全家桶+SSR+Koa2全栈开发美团网

整合大前端8项技术,全面晋级全栈工程师,毕设/面试作品

2445 学习 · 1638 问题

查看课程