if (doc.timestampField < older) { collection.remove(doc); } }) var older=Date.parse("2013-03-01"), all=collection.find(); all.forEach(function(doc) { var ts = doc._id.getTimestamp(); if (ts < older) { collection.remove(doc); } });
?
日期:2014-05-16 浏览次数:20433 次
if (doc.timestampField < older) { collection.remove(doc); } }) var older=Date.parse("2013-03-01"), all=collection.find(); all.forEach(function(doc) { var ts = doc._id.getTimestamp(); if (ts < older) { collection.remove(doc); } });
?