第一阶段:Node.js 入门基础
目标:理解 Node.js 的概念、历史以及执行方式。
1. Node.js 简介
- 什么是 Node.js?
- Node.js 与浏览器的区别
- Node.js 的核心应用场景(Web 后端、命令行工具、爬虫、构建工具)
2. 环境配置
- 安装 Node.js 与 npm
- 使用 node 执行 .js 文件
- 使用 npx 执行命令
3. 模块系统
- CommonJS(require / module.exports)
- ESM(ES Modules:import / export)
- 创建自定义模块
- 常见内置模块(如 fs、path、events)