首页 > 代码库 > create the web service by yourshelf

create the web service by yourshelf

技术分享

 

技术分享

技术分享

start cmd

node demo.js

var http = require(‘http‘);http.createServer(function (request, response) {  response.writeHead(200, {‘Content-Type‘: ‘text/plain‘});  response.end(‘good night\n‘);}).listen(8888);console.log(‘Server running at http://127.0.0.1:8888/‘);

 

 

http://nodejs.org/

create the web service by yourshelf