Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何index.hmtl为每个未定义的路由返回页面,期待 CSS 和 JavaScript 等静态文件?
index.hmtl
好的,我必须添加这一行添加我的结尾app.js
app.js
app.use(function(req,res){ res.render('index', {}); });