nodejs 语言特性(面试系列2)
Node.js 核心模块 1. HTTP 模块 常见问题: 如何创建简单的 HTTP 服务器? const http require(http); const server http.createServer((req, res) > {res.writeHead(200, { Content-Type: text/plain });res.end(Hello World!); }); server.listen(…
2025-10-15