下面是我自己简单实现了一下 koa 的中间件运行函数
//实现一个 koa 的函数
function app() {
}
app.prototype.ctx = {
name: "123",
};
app.prototype.callBack = [];
const next = async function () {
this.MiddleWareNum++;
if (this.callBack[
下面是我自己简单实现了一下 koa 的中间件运行函数
//实现一个 koa 的函数
function app() {
}
app.prototype.ctx = {
name: "123",
};
app.prototype.callBack = [];
const next = async function () {
this.MiddleWareNum++;
if (this.callBack[