# node -v
v6.3.0
# npm -v
3.10.3
var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Welcome Node.js'); }).listen(3001, "127.0.0.1"); console.log('Server running at http://127.0.0.1:3001/');
debugger listening on port 5858
Server running at http://127.0.0.1:3001/
歡迎光臨 ADJ網路實驗室 (http://dz.adj.idv.tw/) | Powered by Discuz! 6.0.0 |