path must be absolute or specify root to res.sendF
摘要:
转载于 express版本3.0之后就将path已经分离出来了。如下改动便可正确: res.sendFile('./static/index.html'); 改成: res.sendFile(path.join(__dirname, './static', 'index.html')); 然后你可能 阅读全文
posted @ 2021-07-26 20:43 In-6026 阅读(450) 评论(0) 推荐(0)
浙公网安备 33010602011771号