最好能把npm中的翻译一下,或者把代码注释一下什么意思,各位大佬们,初学nodejs帮求解!
2条回答 默认 最新
- threenewbee 2017-11-28 15:43关注
body是指http请求返回的消息的消息主体
参考
https://www.npmjs.com/package/body太长了,挑重点吧。
body simply parses the request body and returns it in the callback. jsonBody and formBody call JSON.parse and querystring.parse respectively on the body.
body简单地解析请求体,并在回调中返回它。 jsonBody和formBody分别在body上调用JSON.parse和querystring.parse。anyBody will detect the content-type of the request and use the appropiate body method.
anyBody将检测请求的内容类型并使用适当的主体方法。本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报