Loading

摘要: 创建http服务 使用 nodejs 创建 HTTP 服务 // 导入http模块 const http = require("http") // 使用createServer创建http服务对象,接收一个回调函数 // 两个形参分别是请求对象和响应对象 // 回调函数的执行时机: 当接收到 HTT 阅读全文
posted @ 2024-12-16 19:02 木子七 阅读(115) 评论(0) 推荐(0)