1 render传递多值
router.get(‘/‘, function(req, res, next) { res.render(‘index‘, { homeTitle: ‘Hello All‘, homeDescription:‘I gonna to write something‘ });
<p class="title"><%= homeTitle %></p> <p class="description"><%=homeDescription%></p>
原文:http://www.cnblogs.com/lihaozhou/p/4374502.html