摘要: var mongodb = require('mongodb'); var server = new mongodb.Server('localhost', 27017, {auto_reconnect:true}); var db = new mongodb.Db('mydb', server, {safe:true}); //连接db db.open(function(er... 阅读全文
posted @ 2017-02-19 18:26 茹孟凯 阅读(161) 评论(0) 推荐(0) 编辑