原因:没有告诉服务器去哪里找你的静态资源文件 解决: const path = require(‘path’); app.use(express.static(path.join(__dirname, ‘绝对定位下静态资源的位置’)))