node express handlebars 循环遍历
request('http://xxxxxxxxxx.com/API.php’, function(error, response, body){ if(!error && response.statusCode == 200){ var data = JSON.parse(body); var noviceName = data.data.lists.novice[‘Name’];
res.render('home', {
noviceName : noviceName,
node : 'v0.12.7'
});
}
});
我从后端API用node 拿过来的json数据 怎么给handlebars上无法循环遍历?