... 設置事件const db = mongoose.connection //建立連線db.once('open', () => { console.log('mongodb has been connected'); }) db.on('error', ...
確定! 回上一頁