📜  什么是 Mongoose - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:26.025000             🧑  作者: Mango

代码示例4
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function() {
  // we're connected!
});