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