我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');
}
});
}
}
],
当我运行构建时会发生fetchLatest
pullRefresh.js 的函数被执行,而不是上面的fetchLatest
函数。