findAll() return [object SequelizeInstance:table name] (mysql)

后端 未结 0 1481
逝去的感伤
逝去的感伤 2020-12-20 11:27

my code is :

app.get(\'/main\', function(req, res) {
  Posts.findAll().then(function(posts){
    res.render(__dirname + "/home.pug", {posts:posts});         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题