const express = require('express');
const app = express();
const port = process.env.PORT || 3000;
app.get('/', (req, res) => {
res.send('Hello World!!!');
});
app.listen(port, () => {
console.log(`Express web app available at http://localhost:${port}`);
});
标签:Express,const,一个,res,app,express,简单,服务,port
From: https://www.cnblogs.com/meyerzhao/p/16597122.html