标签:
1
2
3
4
|
var http = require( ‘http‘ ); var server = http.createServer(function(request, response) { // handle your requset }); |
1
2
3
4
5
|
var http = require( ‘http‘ ); var server = http.createServer(); server.on( ‘request‘ , function(request, response) { // handle your requset }); |
1
2
3
4
5
|
var http = require( ‘http‘ ); var server = http.createServer(); server.on( ‘request‘ , function(request, response) { // handle your requset }).listen(8080); |
标签:
原文地址:http://www.cnblogs.com/zxh197242031/p/5510318.html