摘要: require('http').createServer(function(input, echo) { echo.writeHead(200, { 'Content-Type': 'text/plain' }); var index=require('my/index.js'); echo.write( index.show()); echo.end();}).listen(1337, "127.0.0.1");console.log('<<Server running at http:/ 阅读全文
posted @ 2013-01-15 18:38 ivon.hua 阅读(248) 评论(0) 推荐(0) 编辑