模拟:基于koa的简单模拟服务器 源码
嘲笑 一个基于koa的简单模拟服务器。 它支持ajax模拟,freemarker渲染,html渲染。 安装 npm我-g @ ybq / mockr 用法 转到模拟程序配置文件目录mockr-config.js 。 例如,配置文件在/aa/bb/cc 。 cd /aa/bb/cc npm run mockr 模拟程序将在当前工作目录中找到名为mockr-config.js的配置文件。 设定档 下面是一个配置演示: module.exports = { restfulURLs: [ ['/a', null, '/b', null], ], pageEntries: [
下载地址
用户评论