发布于 2015-09-14 15:18:16 | 94 次阅读 | 评论: 0 | 来源: 网络整理
JavaScript constructor to instantiate a database connection from the mongo shell or from a JavaScript file.
Optional. Either in the form of <host> or <host>:<port>.
Use the constructor without a parameter to instantiate a connection to the localhost interface on the default port.
也可以参考
Mongo.getDB()