随笔分类 -  koa

koa的基本使用
摘要://操作文件用的 import * as fs from "fs"; //koa 本体 import * as Koa from "koa"; //这个是用来拼路径的 import * as path from "path"; //这个可以拿来做路由 import * as Router from 阅读全文
posted @ 2020-06-11 22:01 DMC-尼禄 阅读(284) 评论(0) 推荐(0)
koa 快速保存文件的服务器
摘要:import * as Koa from "koa"; import * as fs from "fs"; import * as path from "path"; const app = new Koa(); app.use(async ctx => { // console.log(ctx.u 阅读全文
posted @ 2020-06-11 16:45 DMC-尼禄 阅读(406) 评论(0) 推荐(0)