router.get('/home/:id/:name', async(ctx, next)=>{
console.log(ctx.params) //对象
console.log(ctx.request.query) //对象
console.log(ctx.request.querystring) //字符串
})
复制代码
转载于:https://juejin.im/post/5a4c9af3f265da4334704e50