const express = require('express')
const path = require('path')
const app = express()
app.use(express.static(path.resolve(__dirname, '.')))
app.listen(8088, () => {
console.log(`App listening at port 8088`)
})
const express = require('express')
const path = require('path')
const app = express()
app.use(express.static(path.resolve(__dirname, '.')))
app.listen(8088, () => {
console.log(`App listening at port 8088`)
})
本文标题:最简单的搭建本地服务器环境
本文链接:https://www.haomeiwen.com/subject/kzykactx.html
网友评论