Stories

List
Create Time

koa的基本使用

1、初始化package.json npm init 2、安裝koa2 npm install koa 3、hello代碼 ctx.body="hello"必須寫,否則頁面出現Not Found const koa =require('koa') const app = new koa() app.use(async (ctx)={ ctx.body="hello" }) app.l