var http=require('http');/*Node.js 自带的 http 模块*/
http.createServer(
function(request,response){
response.writeHead(200,{"Content-Type":"text/plain"});
execute(say,"hello,world");
response.end();
}/*这个函数会返回
一个对象,这个对象有一个叫做 listen 的方法,这个方法有一个数值参数,
指定这个 HTTP 服务器监听的端口号。*/
).listen(8888);
function say(word){
console.log(word);
}
function execute(someFunction,value){
someFunction(value);
}