javascript - nodejs使用mongoose连接数据库,使用post提交表单在后台,后台处理后调用res.redirect()跳转界面无效?
ringa_lee
ringa_lee 2017-04-17 16:36:36
0
2
353
ringa_lee
ringa_lee

ringa_lee

reply all(2)
阿神

Where do the req and res in the error code come from

迷茫

The problem has been found because using mongoose.createConnection to connect to the database can only operate the database in the current js. Here I just looked up the data in the users table. In the routing, I also involved data query operations in other tables. There is nothing written there. mongoose.createConnection connection operation library operation.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template