摘要:
index.js const server = require('./server'); const router = require('./router'); server.start(router.route); server.js const http = require('http'); / 阅读全文
摘要:
index.js const server = require('./server'); const router = require('./router'); server.start(router.route); server.js const http = require('http'); / 阅读全文
摘要:
index.js const server = require('./server'); const router = require('./router'); server.start(router.route); server.js const http = require('http'); / 阅读全文
摘要:
const http = require('http'); // Node.js 内置的 http 模块 /** 请求事件发生时调用的回调函数 (Node.js 是执行单线程异步非阻塞事件驱动的) */ function requestListener(req, rep) { console.log 阅读全文