建構在Chrome's JavaScript runtime上,可以極容易地寫出快速,可擴展的網路程式。事件導向,非同步式,不獨占式 I/O處理,使它輕量而有效率,適合即時且資料集中式應用的分散式處理。
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n'); }).listen(1337, "127.0.0.1");
console.log('Server running at http://127.0.0.1:1337/');
anode:Android上使用node.js!
Projects, Applications, and Companies Using Node
沒有留言:
張貼留言