网站更新内容:请访问: https://bigdata.ministep.cn/

express 使用文档

express 使用文档

使用 post 无法传递参数 req-body-empty-on-posts

选择“ X-www-form-urlencoded”
在 app.js 中使用

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));

参考

node.js - req.body empty on posts - Stack Overflow
node.js 提示 req.body 为 undefined_JavaScript_u013438638 的专栏-CSDN 博客

posted @ 2021-02-19 18:26  ministep88  阅读(28)  评论(0编辑  收藏  举报
网站更新内容:请访问:https://bigdata.ministep.cn/