首页 > Web开发 > 详细

create the web service by yourshelf

时间:2014-12-28 23:34:49      阅读:352      评论:0      收藏:0      [点我收藏+]

技术分享

 

技术分享

技术分享

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

原文:http://www.cnblogs.com/hellowzd/p/4190731.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!