Node.js 创建Web服务器 创建文件app.js // 引用系统模块http const http = require('http'); // 创建web服务器 const app = http.createServer(); // 当客户端发送请求的时候 app.on('request', (req, res) => { // 响应 res.end('<h1>hi, user</h1>'); }); // 监听3000端口 app.listen(3000); console.log('服务器已启动') 此时只需要在浏览器访问localhost:300...