javascript - Node.js 和 XAMPP 有什么区别

标签 javascript php node.js http xampp

<分区>

我正在读一本书“Real-Time Communication with WebRTC”,它说:

Node.js is an extremely powerful software platform that allows users to easily build scalable server-side applications with JavaScript. It is based on a single-threaded event loop management process making use of nonblocking I/O. The library provides a built-in HTTP server implementation, making it independent from third-party software components. With Node.js, it is really easy for the programmer to implement a high-performance HTTP server with customized behavior with just a few lines of code.

我已经使用 XAMMP 作为本地 HTTP 服务器,为什么还需要 Node.js? Node js 和 XAMPP 有什么区别?我是 Node.js 的新手。

最佳答案

XAMPP 和 Node.js 完全不同:

XAMPP 是一个由 Apache、MySQL 和 PHP 组成的发行版。因此,您使用 Apache 作为 Web 服务器。

Node.js 是一个 Javascript 框架。您可以使用 Node.js 构建自己的 Web 服务器

关于javascript - Node.js 和 XAMPP 有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32990253/

相关文章:

javascript - 如何使用 angular 1.0.8 在 ng repeat 中使用 if 语句

php - 从页面打开多个 javascript 链接

node.js - Mongoose findOneAndUpdate() 无条件更新最后创建的文档

javascript - 悬停突出显示多个 div 标签

javascript - UserReport 和 Turbolinks - 如何使 JS turbolinks 兼容?

php - $_SESSION ['login_user' ] 不工作

node.js - expressjs项目中设置swagger出错

node.js - Visual Studio Code 中的断点被忽略(是的,就是那个)

javascript - 按共同值对 javascript 对象进行分组

javascript - "Echoing"Node.js 中的图像