mongoDB數據庫

1.引入第三方模塊mongoosejavascript const mongoose = require('mongoose') 2.使用mongoose中connect方法鏈接數據庫java mongoose.connect('mongodb://localhost/數據庫名') .then((res) => {console.log('數據庫鏈接成功')}) .catch((err) =>
相關文章
相關標籤/搜索