一个简单的服务
作者:互联网
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 来源: https://www.cnblogs.com/meyerzhao/p/16597122.html