📜  在节点 js 中渲染 html - Javascript 代码示例

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

代码示例1
render html in node js
-----------------------------
//server.js & index.html keep in same dir
app.use(express.static('./'));

app.get('/', function(req, res) { 
    res.render('index.html');
});