【发布时间】:2021-07-26 22:34:57
【问题描述】:
我有这个快递
app.get('/', requiresAuth(), (req, res) =>
res.sendFile('/db_auth_site/index.html', { title: 'Hey', message: 'Hello there!' })
);
如何在 html 中使用标题?
<h1>title variable here</h1>
【问题讨论】:
-
sendFile的第二个参数不是options object吗?
标签: html node.js express nodejs-server