koa-server-http-proxy koa2 http-proxy-middleware。 安装 $ npm install koa-server-http-proxy --save 例 const Koa = require ( 'koa' ) const app = new Koa ( ) const proxy = require ( 'koa-server-http-proxy' ) app . use ( proxy ( '/api' , { target : 'https://news-at.zhihu.com' , pathRewrite : { '^/api'