express中req.params,req.query,req.body 的区别

get 请求

For example, if you have the route /user/:name

req.params

For example, if you have the route /shoes?order=desc&shoe[color]=blue&shoe[type]=converse

req.query

post请求

req.body

你可能感兴趣的:(express中req.params,req.query,req.body 的区别)