sencha > Ajax

Ext.Ajax.request({
    url: 'myUrl',
	//timeout: 5000,
    method: 'GET',
    //disableCaching: false,

    success: function(response) {
        console.log("Spiffing, everything worked");
    },

    failure: function(response) {
        console.log("Curses, something terrible happened");
    },

    callback: function(options, success, response) {
        console.log("It is what it is");
    }
});

相关推荐