collection.find().toArray(function(error, results){}); collection.find(function(error,results){results.toArray();}); 以回调来说应该是第二种方法吧,为什么第一种也行呢?
作者
作者其它话题
无
collection.find().toArray(function(error, results){}); collection.find(function(error,results){results.toArray();}); 以回调来说应该是第二种方法吧,为什么第一种也行呢?