转自:http://cnodejs.org/topic/518772806d38277306804020
每个页面默认都会再发一个de style="line-height: 21px; padding: 4px 6px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: rgb(0, 0, 0); border-radius: 1px; white-space: nowrap; border: none; margin: 0px 1px; background: 0px 0px rgb(252, 250, 250);" >/favicon.icode>
de style="line-height: 21px; padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-radius: 3px; border: 0px; background-color: transparent;" >var http=require('http');var i=0;var req=function(req,res){ i=i+1; console.log(i,req.url); res.writeHead(200,{ 'Content-Type':'text/plain'}); res.end('Hello World\n');};http.createServer(req).listen(8888,"127.0.0.1");console.log('Server running...');de>
##控制台输出:
de style="line-height: 21px; padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-radius: 3px; border: 0px; background-color: transparent;" >Server running...1 '/'2 '/favicon.ico'de>