[英]IIS/ASP.Net vs NodeJs/ExpressJS
I'm very new to NodeJs/expressJs, i read tons of articles on internet and still don't understand it我对 NodeJs/expressJs 很陌生,我在互联网上阅读了大量文章,但仍然不明白
is NodeJs a web server like IIS? NodeJs 是像 IIS 这样的 web 服务器吗? if so can i host an asp.net app in NodeJS?如果是这样,我可以在 NodeJS 中托管 asp.net 应用程序吗?
Is expressJs a framework like ASP.NET? expressJs 是像 ASP.NET 这样的框架吗?
I currently work on both IIS ASP.NET applications as well as NodeJS/ExpressJS systems and the below is what I have noted to be different:我目前在 IIS ASP.NET 应用程序以及 NodeJS/ExpressJS 系统上工作,以下是我注意到的不同之处:
IIS: IIS:
NodeJS/ExpressJS: NodeJS/ExpressJS:
NodeJS is not a web server. NodeJS 不是 web 服务器。 It is a backend server (Such as a REST API etc) ExpressJS sits ontop of NodeJS to add functionality and is essentially a framework.它是一个后端服务器(例如 REST API 等)ExpressJS 位于 NodeJS 之上以添加功能,本质上是一个框架。 Coupled with jade/pug you can write js inside the html.再加上jade/pug,你可以在html里面写js。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.