const express = require('express') const app = express() // 步骤的拆解 const result = express.static('./views') app.use(result) // 再次托管一下样式表的资源目录 app.use('/css', express.static('./css')) // 托管JS文件目录 app.use('/js', express.static('./js')) app.listen(3001, () => { console.log('server running at http://127.0.0.1:3001') })