而基于koa 的中间件特性,我们可以写出即简单又优雅也不耦合的缓存中间件。以koa-router-cache 为例,我们看看它是如何实现的: var app = require('koa')(); ...
確定! 回上一頁