Today's mobile devices have GPS and standard APIs to give you access to coordinates—but what can you do with that data? With this concise book, application developers learn how to work with location data quickly and easily, using Node.js, CouchDB, a
本文实例讲述了node.js入门实例helloworld。分享给大家供大家参考,具体如下:
将下面的代码保存为:server.js存到E盘下面的node目录中。
var http = require('http');
function myNode(request, response){
response.writeHead(200, {'Content-type':'text/plain'});
response.write('hello world'); //hello world