84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
router.get('/error', function (req, res) { res.render('error', { title: 'error' }); });
问题一:html中如何加载上面的title。
问题二:在js中如何获取到render的数据。
html中的代码
1、<title>title</title> 2、<title>{{title}}</title> 3、<title>#{title}</title>
以上三种好像都不对!
认证高级PHP讲师
The method of obtaining the background variable value depends on the template you select. In html, of course, select <%=%> to get the background variable value.
<%= title %>
. . .
What template are you using?
The method of obtaining the background variable value depends on the template you select.
In html, of course, select <%=%> to get the background variable value.
<%= title %>
. . .
What template are you using?