我有以下代码,导入模型 我在第11行得到错误.不存在方法成功 Sequelize使用 bluebird 软件包实现其Promise,而 as you can see here,其API不支持.success()(它也不是有效的Promises / A方法). 相反,使用 .t
我在第11行得到错误.不存在方法成功
Sequelize使用bluebird软件包实现其Promise,而
as you can see here,其API不支持.success()(它也不是有效的Promises / A方法).
相反,使用.then():
sequelize.sync().then(function() {
...called if successful...
}, function(err) {
...called if an error occurred...
});
