var http=require('http');
var httpObj=http.createServer(function(req,res) {
console.log('someBody:' + req.url);
switch (req.url) {
case '/a.html':
res.write('AA');
res.end();
break;
case '/b.html':
res.write('B');
res.end();
break;
default :
res.write('Index');
res.end();
break;
}
});
httpObj.listen(8081);