EXT 如何往store中增加一组数据?
varDateRecord=Ext.data.Record.create([{name:'g_id',mapping:0},{name:'g_value',mapping...
var DateRecord = Ext.data.Record.create([
{name:'g_id',mapping:0},
{name:'g_value',mapping:1},
{name:'g_type',defaultValue:'SJD'}
]);
store = new Ext.data.Store({
sortable : true,
root : 'rows',
totalProperty : 'count',
proxy: new Ext.data.HttpProxy({
url : url,
method : 'POST'
}),
reader : new Ext.data.ArrayReader({root : 'rows',totalProperty : 'count',id : 0},DateRecord)
});
往store里加入这样一组时间段的数据 展开
{name:'g_id',mapping:0},
{name:'g_value',mapping:1},
{name:'g_type',defaultValue:'SJD'}
]);
store = new Ext.data.Store({
sortable : true,
root : 'rows',
totalProperty : 'count',
proxy: new Ext.data.HttpProxy({
url : url,
method : 'POST'
}),
reader : new Ext.data.ArrayReader({root : 'rows',totalProperty : 'count',id : 0},DateRecord)
});
往store里加入这样一组时间段的数据 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询