var expertList = {
title:"title",
name:"name"
}
// nodejs返回数据
res.render('expert/index',{
title: res.__('expert.title'),
expertBanner: expertBanner,
expertList:expertList,
current:"expert"
})
html模板中解析方式为:
```js
//EJS模板中需要用<%- %> 进行解析
var expertList = JSON.parse(<%- JSON.stringify(expertList)%>)