摘要:
/* 可以添加的全局属性 */// app.context.a=12; /* get请求的数据 */// ctx.query/* 客户端的ip */// ctx.ip/* 请求头 */// ctx.headers/* 设置请求头 */// ctx.set('content-type', json`) 阅读全文
posted @ 2021-04-01 16:54
莣ㄋ噯
阅读(1607)
评论(0)
推荐(0)
摘要:
入口app.js const koa = require("koa");const app = new koa();const Router = require('koa-router');const router = new Router();/* 引用路由user */const user = 阅读全文
posted @ 2021-04-01 15:38
莣ㄋ噯
阅读(196)
评论(0)
推荐(0)
浙公网安备 33010602011771号