这就是 koa-send 做的事情了,提供了一个封装非常完善的处理静态文件的中间件。 这里是两个最基础的使用例子: const path = require('path') const send ...
確定! 回上一頁