Koa搭建静态文件服务器
const Koa = require('koa')
const KoaStatic = require('koa-static')
const app = new Koa()
app.use(KoaStatic('./'))
app.listen(8200,function(){
console.log('server listening on 8200');
});
本文来自博客园,作者:广林,转载请注明原文链接:https://www.cnblogs.com/guanglin/p/13985227.html