http 模組知識
創建檔案
var http = require("http");
http.createServer(function(require,response){
response.writeHead(200,{"Content-Type":"text/plain"});
response.write("hello world");
response.end();
}).listen(8080);Last updated
Was this helpful?