Node 建立 Web 客户端

Node 建立 Web 客户端须要引入 http 模块,建立 client.js 文件,代码以下所示:html 实例:node var http = require('http');函数 // 用于请求的选项ui var options = {server host: 'localhost',htm port: '8080',教程 path: '/index.html'utf-8 };回调函数 /
相关文章
相关标签/搜索