摘要: index.js const server = require('./server'); const router = require('./router'); server.start(router.route); server.js const http = require('http'); / 阅读全文
posted @ 2020-10-16 19:38 ayuuuuuu 阅读(110) 评论(0) 推荐(0) 编辑
摘要: index.js const server = require('./server'); const router = require('./router'); server.start(router.route); server.js const http = require('http'); / 阅读全文
posted @ 2020-10-16 15:42 ayuuuuuu 阅读(102) 评论(0) 推荐(0) 编辑
摘要: index.js const server = require('./server'); const router = require('./router'); server.start(router.route); server.js const http = require('http'); / 阅读全文
posted @ 2020-10-16 14:29 ayuuuuuu 阅读(130) 评论(0) 推荐(0) 编辑
摘要: const http = require('http'); // Node.js 内置的 http 模块 /** 请求事件发生时调用的回调函数 (Node.js 是执行单线程异步非阻塞事件驱动的) */ function requestListener(req, rep) { console.log 阅读全文
posted @ 2020-10-16 13:03 ayuuuuuu 阅读(1220) 评论(0) 推荐(0) 编辑