EXTJS 4.0:如何实现store.sync()方法的回调方法?

not*_*ing 4 store sync callback extjs4

我正在使用Extjs 4.0,我需要一个方法的回调store.sync()方法?有没有人有办法解决吗?非常感谢!

Mik*_*ike 8

这应该从4.1开始:

store.sync({
            success: function()
            {
                console.log("success!!");
            },
            failure: function()
            {
                console.log("failed...");
            },
            callback: function()
            {
                console.log("calling callback");
            },
            scope: this
        });
Run Code Online (Sandbox Code Playgroud)