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
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
本文链接:https://www.haomeiwen.com/subject/zxackxtx.html
网友评论