- 地址query
地址
localhost:4000/users?q=1
ctx.query
// { q: 1 }
- 获取router params
路由
localhost:4000/users/:id地址localhost:4000/users/1
ctx.params
// { id: 1}
- 请求体body
地址
localhost:4000/users,content-type为application/json,参数{"name": "zj"}
ctx.request.body
// { "name": "zj" }