What's the difference between creating a server using http module and creating a server using express framework in node js?Thanks. 解决方案 Ultimately, express uses node's http api behind the scenes.express frameworkThe express framework provides an abstraction layer above the vanilla http module to make handling web traffic and APIs a little easier. There's also tons of middleware available for express (and express-like) frameworks to complete common tasks such as: CORS, XSRF, POST parsing, cookies etc.http apiThe http api is very simple and is used to to setup and manage incoming/outgoing ,HTTP connections. Node does most of the heavy lifting here but it does provide things you'll commonly see throughout most node web framework such as: request/response objects etc. 这篇关于具有http.createServer的服务器与在节点js中使用express的服务器之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!