關於nodejs DeprecationWarning: current URL string parser is deprecated, and will be removed in a futur

const mongoose = require('mongoose') mongodb

mongoose.connect("mongodb://localhost:27017/study", {useNewUrlParser:true}, function(err){ mongoose

  if(err){ ui

    console.log('Connection Error:' + err) spa

  }else{ string

    console.log('Connection success!') it

  } io

})console

相關文章
相關標籤/搜索