欢迎来到 AI 中文社区(简称 AI 中文社),这里是学习交流 AI 人工智能技术的中文社区。 为了更好的体验,本站推荐使用 Chrome 浏览器。
全部教程·
JavaScript·
Node.js
[目录]
·
Node.js 工具模块
Node.js 教程
Node.js 安装配置
Node.js 创建应用
npm 使用教程
Node.js 交互式解释器
Node.js 回调函数
Node.js 事件循环
Node.js EventEmitter
Node.js 缓冲区
Node.js 流
Node.js 模块系统
Node.js 函数
Node.js 路由
Node.js 全局对象
Node.js 常用工具
Node.js 文件系统
Node.js GET/POST请求
Node.js 工具模块
Node.js Web 模块
Node.js Express 框架
Node.js RESTful API
Node.js 多进程
Node.js JXcore 打包
Node.js 连接 MySQL
Node.js 连接 MongoDB
Node.js 教程
Node.js 安装配置
Node.js 创建应用
npm 使用教程
Node.js 交互式解释器
Node.js 回调函数
Node.js 事件循环
Node.js EventEmitter
Node.js 缓冲区
Node.js 流
Node.js 模块系统
Node.js 函数
Node.js 路由
Node.js 全局对象
Node.js 常用工具
Node.js 文件系统
Node.js GET/POST请求
Node.js 工具模块
Node.js Web 模块
Node.js Express 框架
Node.js RESTful API
Node.js 多进程
Node.js JXcore 打包
Node.js 连接 MySQL
Node.js 连接 MongoDB
Node.js 工具模块
在 Node.js 模块库中有很多好用的模块。接下来我们为大家介绍几种常用模块的使用:
| 序号 | 模块名 & 描述 |
|---|---|
| 1 | OS 模块 提供基本的系统操作函数。 |
| 2 | Path 模块提供了处理和转换文件路径的工具。 |
| 3 | Net 模块 用于底层的网络通信。提供了服务端和客户端的的操作。 |
| 4 | DNS 模块 用于解析域名。 |
| 5 | Domain 模块 简化异步代码的异常处理,可以捕捉处理try catch无法捕捉的。 |
下一章:Node.js Web 模块
Web服务器一般指网站服务器,是指驻留于因特网上某种类型计算机的程序,Web服务器的基本功能就是提供Web信息浏览服务。Node.js 提供了 http 模块,http 模块主要用于搭建 HTTP 服务端和客户端,使用 HTTP 服务器或客户端功能必须调用 http 模块。
AI 中文社