router:
router.get('/', function(req, res, next) {
res.render('index', { title:{name:'aaa',age:23} });
});
jade:
extends layout
block content
h1= title
p Welcome to #{title.name}
script(type="text/javascript").
var title = !{JSON.stringify(title)}
console.log(title.name)
在vue中也可以用js接收