1 2 3 4

node中controller的get和post方法获取参数

1.get:

const body = ctx.query; // get请求
 
2.post:
const body = ctx.request.body; // post请求
posted @ 2019-11-26 16:23  红鲤鱼与LV  阅读(591)  评论(0)    收藏  举报