nodejs基础知识点

var http = require("http");载入 http 模块,并将实例化的 HTTP 赋值给变量 httpnode 使用 http.createServer() 方法建立服务器,并使用 listen 方法绑定 8888 端口web 函数经过 request, response 参数来接收和响应数据编程 可使用下划线 _ 获取上一个的结果服务器 ctrl + d 退出 Node 命令框
相关文章
相关标签/搜索