码迷,mamicode.com
首页 > Web开发 > 详细

create the web service by yourshelf

时间:2014-12-28 23:36:48      阅读:192      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!