req.parames.a /:a
req.query.a ?a=1
req.body.a
req.cookies.a
req.get('Content-Type'); // => "text/plain"
req.is(type)
req.accepts(types)
req.use(cookie-parser)
req.use(body-parser)
req.parames.a /:a
req.query.a ?a=1
req.body.a
req.cookies.a
req.get('Content-Type'); // => "text/plain"
req.is(type)
req.accepts(types)
req.use(cookie-parser)
req.use(body-parser)
本文标题:nodejs req请求参数
本文链接:https://www.haomeiwen.com/subject/wwbxittx.html
网友评论