const express = require('express')
const app = express()
// 调用static函数托管静态资源 可托管多个
// 从上往下查找
// 做伪装
app.use(express.static('./index'))
app.use('/public',express.static('./MyukiDanMu'))
app.listen(88,()=>{
console.log('express serve running at http://127.0.0.1')
})
标签:web,use,app,express,9express,static From: https://www.cnblogs.com/wencaiguagua/p/16846957.html