【发布时间】:2016-12-14 16:54:40
【问题描述】:
我面临一个无法调试的特殊问题。 TypeError: My code is returned function is undefined which end the API call 但我查看了日志和断点,在 API 以错误结束后,它继续执行相同的 then 函数。
这怎么可能。
我正在使用 nodejs/express/sequelizejs
models.Holdings.update(obj,{
where:{
id: obj.id
}
}).then().catch()
【问题讨论】:
-
将函数传递给 then 并 catch。
-
@danh:如何。我无法理解你的意思
标签: javascript node.js express sequelize.js