摘要: node.js入门学习笔记
console.log('hello heck.');
console.log('%s:%d','hello',25);
console.log('hello heck.');
console.log('%s:%d','hello',25);
var http = require('http');
http.createServer(function(req, res){
res.writeHead(200,{'content-Type':'text/html'});
res.write('<h1>Node.js</h1>');
res.end('<p>Hello World</p>');
}
).listen(3000);
console.log("HTTP server is listening at port 3000.");
© 著作权归作者所有