Express submission form problem

  node.js, question

For example, how can the form name=”post[title] “and name=”post[content]” be passed in the background?

var data = req.body.post;
 var title = data.title

Get title

The premise of using the above code is that you have installed and used the bodyparser middleware, and then you can use it.
req.body

npm install body-parser