2017-03-01 82 views

回答

0

你差点就已经

db.getMongo().getDBNames()返回JavaScript数组,因此要获得它的长度,只是做:

db.getMongo().getDBNames().length

相关问题