用法:
app.context.fun = function(){ return "www.liboke.cn"; }; app.use(async ctx => { ctx.body = ctx.fun(); //输出:"www.liboke.cn" });