现象如下:
解决办法:在代码中加入body-parser解析
const bodyParser = require("body-parser");
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
参考:
现象如下:
解决办法:在代码中加入body-parser解析
const bodyParser = require("body-parser");
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
参考: