res.write('Hello, Node.js!'); //write. a response to the client. res.end(); //end the response. }) .listen(8080); //the server object. listens on port 8080.
確定! 回上一頁