我有一个 sencha 触摸代码,它使用Ext.Ajax.request
. 在success
功能上,我希望将响应显示在列表中或将其存储在商店中。
请帮助我如何做到这一点。下面是我的代码。
var View = function() {
Ext.getBody().mask('Loading...', 'x-mask-loading', false);
Ext.Ajax.request({
url: 'URL',
method: 'GET',
success: function(response, opts)
{
var obj = Ext.util.JSON.decode(response.responseText);
Ext.getCmp('content').update(response.responseText);
}
});
};