How does node.js background get the data transferred by ajax?

  node.js, question

图片描述
This is ajax data

图片描述
This is a backstage acquisition
图片描述
This was inserted into the database, and found that name and content are all empty. How can I get ajax data?

1. First of all, the building owner is at the front end$title.val()And$content.val()Did you really get the value?

2. Assuming that the landlord does get the corresponding value at the front end, try to

Data: "name= "plus $name.val ()  ...

Change to

data: {
 name: $name.val()   ...
 bracket