水文章

req 请求体

request 对象表示 HTTP 请求,包含了请求查询字符串,参数,内容,HTTP 头部等属性
水文章

req.body依赖中间件

中间件使用:body-parser
1.npm install body-parser
2.npm install body-parser
3.app.use(bodyParser ())

res 响应体

response 对象表示 HTTP 响应,即在接收到请求时向客户端发送的 2HTTP 响应数据
水文章