1. 首页
  2. 数据库
  3. 其它
  4. koa query pretty:用于koa的漂亮查询中间件 源码

koa query pretty:用于koa的漂亮查询中间件 源码

上传者: 2021-02-07 11:07:29上传 ZIP文件 21.83KB 热度 31次
koa查询漂亮 Koa的漂亮查询中间件。 描述 默认情况下, Koa使用queryString解析GET参数,但是解析的参数是string 。 Koa-query-pretty可以转换为具体类型,例如int , float , boolean , null , undefined 。 安装 yarn add koa-query-pretty 支持node.js v7.6 + 利用 const Koa = require ( 'koa' ) ; const queryPretty = require ( 'koa-query-pretty' ) ; const app = new Koa (
下载地址
用户评论