开发工具:html
我使用的开发工具是Mac版的WebStorm,这个工具支持Nodejs,只要按照以下步骤设置便可以支持node
一、WebStorm的开发界面,这个开发工具仍是很是好用的。web
二、WebStorm的Nodejs配置工具
三、开始运行了,看看效果开发工具
require('http').createServer(function(req, res){ console.log(req.headers); res.writeHead(200, {'Content-Type': 'text/html'}); res.write('Hello <b>World</b>.'); setTimeout(function(){ res.end('<br/><b>I am coming.</b>'); }, 5000); }).listen(3000); console.log('Server running at http://127.0.0.1:3000/');