Home  >  Q&A  >  body text

node.js是怎么处理数据库和后台的数据的呀?下面的这段代码看不懂呀?

高洛峰高洛峰2761 days ago677

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 16:09:27

    This is a typical system configuration of express and mongodb.
    The first piece of code uses ‘connect-mongodb’ to connect to mongodb and store session settings.
    The second piece of code is to obtain user login information (user) and other operations.

    Refer to connect-mongodb for details: https://www.npmjs.com/package...

    reply
    0
  • Cancelreply