📌  相关文章
📜  错误:找不到模块 'html' express - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:02.257000             🧑  作者: Mango

代码示例1
To render static files use the static middleware like so:
app.use(express.static(path.join(__dirname, 'public')));

This tells express to look for static files in the public directory 
of the application
Once you have specified this simply point your browser to the location 
of the file and it should display