摘要: //1 导入内置fs模块 const fs = require('fs') //2 导入path模块 const path = require('path') //3 导入http模块 const http = require('http') //4 创建web服务器 const server = 阅读全文
posted @ 2022-10-22 16:36 文采呱呱 阅读(16) 评论(0) 推荐(0) 编辑
摘要: //http: // 1,导入http模块 const http = require('http') // 2,创建web实例 const server = http.createServer() // 3,为服务器绑定require事件 server.on('request',function(r 阅读全文
posted @ 2022-10-22 00:34 文采呱呱 阅读(15) 评论(0) 推荐(0) 编辑