84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
图一是post表单,提交后node后台通过req.body获取的数据是上图,这让我很困扰。导致不能使用req.body.movie.title取到数据。
post
node
req.body
req.body.movie.title
app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false }));
使用bodyParser仍然没有效果。请问大神 这是什么情况?
bodyParser
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
Of course you can’t get req.body.movie.title. The post is req.body.movie[title]. This movie[title] is just a string, not an object at all. How can you get it? .
req.body['movie[title]']
Of course you can’t get req.body.movie.title. The post is req.body.movie[title]. This movie[title] is just a string, not an object at all. How can you get it? .