1
我要想起這我想調用readline。怎麼做?
rl.question("input your port do you want (about 0 - 65535) : ", function(portnumber)
在此之後
:
if(netinfo > 6665){
return console.log("Error stupid i say about 0 - 65535")
}
rl.question("input your port do you want (about 0 - 65535) : ", function(portnumber){
if(netinfo > 6665){
return console.log("Error stupid i say about 0 - 65535")
}
netinfo = portnumber;
const requestHandler = (request, response) => {
console.log(request.url)
response.write('<b>welcome to groone simple http server :p </b>');
response.end('ahahahahahah :)');
}
如何做到這一點?