下方的Mongoose 連線範例是以Mongoose 5+ 為基礎,與舊版不同。 Dotenv (如果您想要從.env 檔案載入您的密碼): npm install dotenv --save.
確定! 回上一頁