文件:app.js
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.send('这是Express响应')
})
app.listen(port, () => {
console.log(`Example 运行在 ${port} 端口上`)
})
node app.js
文件:app.js
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.send('这是Express响应')
})
app.listen(port, () => {
console.log(`Example 运行在 ${port} 端口上`)
})
node app.js
让时间为你证明