【发布时间】:2021-08-17 05:00:03
【问题描述】:
我搜索了类似的症状,但找不到我的病例。
我已经安装了 body-parser 并且
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({extended: true}))
但如果我有多个 POST 请求,则只有第一个 req.body 被识别,第二个 req.body 只返回 {}。
请帮忙
【问题讨论】:
-
“次要 req.body”是什么意思?能否包含发出 POST 请求的代码?
标签: html mysql node.js express