//导入body-parser模块
const bodyParser = require("body-parser");
//将模块注册上app实例上
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
#express#使用body-parser解析POST请求体
猜你喜欢
转载自blog.csdn.net/weixin_45037444/article/details/104136378
今日推荐
周排行