【发布时间】:2013-08-07 09:07:55
【问题描述】:
我在以下代码中使用PullRefresh,但它在构建中不起作用:
xtype:'dataview',
mode:'multi',
plugins: [
{
xclass: 'Ext.plugin.PullRefresh',
fetchLatest: function(plugin) {
var json = localStorage.getItem("JSON");
Ext.Ajax.request({
method:'POST',
url:webservice_url,
params:{ params:json},
success:function (response) {
var storeobj = Ext.getStore('questions');
storeobj.sync();
storeobj.add(result.info.info);
storeobj.sync();
},
failure: function(res){
console.log('Failure');
}
});
}
}
],
当我运行构建时,pullRefresh.js 的 fetchLatest 函数被执行,而不是上面的 fetchLatest 函数。
【问题讨论】:
标签: pull-to-refresh sencha-touch-2.2