* mongo shell下支持JS代码,可以通过JS获取游标,进而获取数据操作结果。 var cursor = db.class1.find() cursor.next() 获取下一条结果 cursor.hasNext() 查看是否有下一个对象