问题截图 使用 nodejs 连接两个数据库报出了这样的错误,原因是使用 connect 方法连接时,只能连接一个数据库。如果需要连接多个数据库需要使用 createConnection() 方法。 let db = mongoose.createConnection( "mongodb://localhost/electricity_user_database" ); db.on("error&