cursor.hasNext()

Returns: Boolean.

如果db.collection.find()查询返回的游标可以进一步迭代以返回更多文档,则cursor.hasNext()返回true

首页