Mongodb数据操作基础
摘要:
var mongodb = require('mongodb');var server = new mongodb.Server('localhost', 27017, {auto_reconnect: true});var db = new mongodb.Db('exampleDb', server);// open database connectiondb.open(function(err, db) { if(!err) { // access or create widgets collection db.collection( 阅读全文
posted @ 2013-11-12 18:03 Ijavascript 阅读(277) 评论(0) 推荐(0) 编辑