📜  简单的 nodejs 服务器 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:28.355000             🧑  作者: Mango

代码示例4
// One Line ES6
require('http').createServer((req, res) => res.end(`You're in: ${req.url}`)).listen(8080, err => err ? console.log : console.log(`Listening on port 8080`))