Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

koa简单例子报错

$
0
0

var koa = require(‘koa’) , router = require(‘koa-router’) , app = koa();

app.use(router(app)); app.listen(8080);

报错说app.use要使用生成器函数 例子地址求解router(app)这句话


Viewing all articles
Browse latest Browse all 14821

Trending Articles