If you directly use the form element to send http requests to submit form data, use name="person[name]". Actually, a person object will not be automatically generated when sending the request. If you want to use req in node. body.person.XXX to get the submitted content, or use js to submit the form. (If there are not many submitted items, you can list them one by one. If there are many, just traverse this form to get the value.)
app.use(bodyParser.json());
If you directly use the form element to send http requests to submit form data, use name="person[name]". Actually, a person object will not be automatically generated when sending the request. If you want to use req in node. body.person.XXX to get the submitted content, or use js to submit the form. (If there are not many submitted items, you can list them one by one. If there are many, just traverse this form to get the value.)
Add these two sentences and it will be solved.
No need to bother, just req.body.xx can get the value!