node开启服务器功能

var http = require('http');

http.createServer(function(req,res){
	res.writeHead(200,{'Content-Type':'text/plain'});

	res.end('Hello World');

}).listen(3000,'192.168.1.104');

猜你喜欢

转载自blog.csdn.net/jinqianwang/article/details/82767292