Quantcast
Channel: 黑暗執行緒
Viewing all articles
Browse latest Browse all 2345

Node.js 之 localhost / 127.0.0.1 解析問題

$
0
0
踩到一個 Node.js 小問題,用一小段程式重現。 簡單的 HTTP 客戶端測試,一人分飾兩角,預設為伺服器模式,利用內建 http 模組 Bind 127.0.0.1 9527 Port 跑一個簡單的伺服器(永遠回傳 Hello World);若帶入參數 client,則使用 fetch 呼叫 ... Read More

Viewing all articles
Browse latest Browse all 2345

Trending Articles