3
我试图用Sequelize发送两个模型到视图,但我不知道如何继续。用Sequelize发送两个模型到视图
我的下面的代码不起作用。
Post.findAll().success(function(posts) {
Creation.findAll().success(function(creations) {
res.render('admin_index', {
creations: creations,
posts: posts
});
});
});
安东尼
做u体验到什么问题的回调? – sdepold 2013-02-14 07:57:28
在我的视图“admin_index”中无法识别数组“帖子”... – tonymx227 2013-02-14 07:59:15