var uStore = Ext.create('Ext.data.Store', {
model: 'ulistModel',
pageSize: 50,
proxy: {
// load using HTTP
type: 'ajax',
url: 'getUnitList',
// the return will be XML, so lets set up a reader
reader: {
root: 'unitlist',
totalProperty: 'totalcount'
},
extraParams: {
'siteid': ''
}
},
listeners:{
'load': function( s, r, successful, eOpts){
if (!successful){
Ext.MessageBox.alert('Operation Failure', sessionErrMsg, function(){
window.location.href = loginurl;
});
}
}
}});uStore 取到的这种数据格式怎么读取?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货