node controller in the get and post method to obtain parameters

1.get:

const body = ctx.query; // get request
 
2.post:
const body = ctx.request.body; // post request

Guess you like

Origin www.cnblogs.com/kaiqinzhang/p/11936442.html