更新时间:2022-03-19 01:43:59
我认为您应该 解析
正文 转换为 JSON .请尝试以下操作:
I think you should parse
the body
to JSON. Try the following:
app.use(bodyParser.json());
我认为您从客户端收到的是 JS对象
而不是 JSON
.
I think you received a JS Object
instead of JSON
from the client.