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 };回調函數 /
相關文章
相關標籤/搜索