How to process POST data in Node.js?
问题 How do you extract form data ( form[method=\"post\"] ) and file uploads sent from the HTTP POST method in Node.js? I\'ve read the documentation, googled and found nothing. function (request, response) { //request.post???? } Is there a library or a hack? 回答1: If you use Express (high-performance, high-class web development for Node.js), you can do this: HTML: <form method="post" action="/"> <input type="text" name="user[name]"> <input type="text" name="user[email]"> <input type="submit" value=