Jquery.ajxpost submits an object
Print out req.body, and the result is this
What is the reason? Synchronous submission with form forms can be resolved normally
jQuery.ajaxSend data by default
application/x-www-form-urlencodedThe standard requirements are as follows
In the order in the document
The data asked by the landlord,
post.bodyAs above, the analysis is completely correct.
Key value pairOnly one level, and all
KeyAll are equal and there are no sub-elements.
If you want the submitted data to be directly parsed into objects, you can refer to other answers.
formidableSuch as component analysis.
text/plainNative data has not been processed, and the parsing method can be customized.