52,787
社区成员
发帖
与我相关
我的任务
分享
//首先远程读取数据
var seriesStore = new Ext.data.JsonStore({
url: 'DATA/Series/GetSeries.aspx',
fields: ['seriesid', 'seriesname']
});
//然后在Store的Load事件中使用Store的insert方法插入本地数据
seriesStore.on('load', function(store, record, options) {
store.insert(0, new Ext.data.Record({ 'seriesid': '0', 'seriesname': '全部显示' }, '-1'));
});
seriesStore.load();