📅  最后修改于: 2022-03-11 15:01:34.781000             🧑  作者: Mango
var mongoose = require("mongoose");mongoose.Promise = global.Promise;mongoose.connect("mongodb://localhost:27017/node-demo");