如何让main函数返回'集合的值? 它被执行后的匿名函数?
function getStudentStatus(name, course, term){
MongoClient.connect(url, function(err, db){
if(err) throw err;
var db_instance = db.db('newdb');
db_instance.collection('students').findOne({}, function(err, res){
if(err) throw err;
console.log('[Mongo Database]: '+ res.name);
});
});
}