0
我有代码app.js
与猫鼬查询后存储可变数据和Node.js的
var Song = db.model('Song');
var Album = db.model('Album');
我想渲染到index.jade
有2个变量是list of song
和list of album
我用这样的查询
Song.find({}, function(err, docs){
// .........
}
Album.find({}, function(err, docs){
// .........
}
那么,我应该怎么做才能将list of song
和list of album
存储到variables
并渲染到index.jade
与2列表小号
嗨,杰德,你可以帮我解决[这里]的问题(http://stackoverflow.com/questions/8754597 /什么,应该-I-DO到店数据与会话与 - 连接 - Redis的) – 2012-01-07 03:32:14