【发布时间】:2014-09-25 08:07:58
【问题描述】:
我的 store.sync() 可以返回 success:false,如果是,我想使用类似于 Ext 的 failure 回调的东西来适当地对错误做出反应,但我没有找到使用任何为此的内置 ST 函数。同步在 ST 中既没有回调也没有成功或失败选项。
我忽略了什么?
PS:我确实在Why is there no sync callback in Sencha Touch? 找到了success 回调的解决方法,但我需要failure 回调。
【问题讨论】:
-
在此处查看成功回调的简单解决方案:stackoverflow.com/a/27473830/1199820
标签: sencha-touch sencha-touch-2