0
내가 app.js
스토어 변수 몽구스와 쿼리 후 데이터와
var Song = db.model('Song');
var Album = db.model('Album');
내가이 개 변수 index.jade
에 렌더링 할 코드를 Node.js를가 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 목록으로 렌더링하려면 어떻게해야합니까? 의
안녕하세요, Jed, 제가 여기에서 문제를 해결하는 데 도움을 줄 수 있습니까? (http://stackoverflow.com/questions)/8754597/store-data-to-store-connection-redis) –