摘要:
//1 导入内置fs模块 const fs = require('fs') //2 导入path模块 const path = require('path') //3 导入http模块 const http = require('http') //4 创建web服务器 const server = 阅读全文
摘要:
//http: // 1,导入http模块 const http = require('http') // 2,创建web实例 const server = http.createServer() // 3,为服务器绑定require事件 server.on('request',function(r 阅读全文