Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
エクスプレスとマングースを使用して、ホームページに猫をリストしています
app.get('/', function(req, res) { Model.cats.find(function(err, ret) { res.render('home.jade', {cats: ret}); }) });
ここで、猫と犬も表示したいとしましょう。どうすればできますか?結局、検索機能は非同期なので、応答を準備する方法がわかりません。