如题所述
å¦æç¨çexpress, é£ä¹app.use(express.static(path.join(__dirname, 'public')));设å®éææ件路å¾, è¿æ ·çè¯å°±å¯ä»¥ç´æ¥è®¿é®publicç®å½ä¸çéæhtmläº, åå¦publicç®å½ä¸æ个test.html, å¨è·¯ç±è·³è½¬çé»è¾ä¸å ä¸res.redirect('/test.html')å³å¯, publicç¸å½äºæ ¹è·¯å¾ã
温馨提示:答案为网友推荐,仅供参考