express鏈接數據庫步驟

@express鏈接數據庫步驟web 1,要在你的項目目錄打開終端執行 :cnpm install mongoose --save 如圖: 在app.js共用文件導入:mongodb var mongoose=require('mongoose'); //鏈接數據庫代碼塊:數據庫 mongoose.connect('mongodb://127.0.0.1:27017/zhoer',function
相關文章
相關標籤/搜索