ExtJs Store baseParams设置
var store = new Ext.data.Store({
baseParams: { limit:25,query: '' },//注意位置
proxy: new Ext.data.HttpProxy(
{
url: url
}
),
reader: new Ext.data.JsonReader(
{
totalProperty: "totalPorperty", root: "root", fields: fields
}
)
});
var store = new Ext.data.Store({
baseParams: { limit:25,query: '' },//注意位置
proxy: new Ext.data.HttpProxy(
{
url: url
}
),
reader: new Ext.data.JsonReader(
{
totalProperty: "totalPorperty", root: "root", fields: fields
}
)
});
GridPanel加了SearchField搜索框这个控件
SearchField默认只有start:0参数无limit,还有为了调用查询参数query,在store中加入了baseParams的设置,注意位置,调了半天原来放在下面就会出错
var store = new Ext.data.Store({
baseParams: { limit:25,query: '' },//注意位置
proxy: new Ext.data.HttpProxy(
{
url: url
}
),
reader: new Ext.data.JsonReader(
{
totalProperty: "totalPorperty", root: "root", fields: fields
}
)
});
var store = new Ext.data.Store({
baseParams: { limit:25,query: '' },//注意位置
proxy: new Ext.data.HttpProxy(
{
url: url
}
),
reader: new Ext.data.JsonReader(
{
totalProperty: "totalPorperty", root: "root", fields: fields
}
)
});
GridPanel加了SearchField搜索框这个控件
SearchField默认只有start:0参数无limit,还有为了调用查询参数query,在store中加入了baseParams的设置,注意位置,调了半天原来放在下面就会出错

本文详细介绍了ExtJS中StorebaseParams的配置方法,包括如何正确设置baseParams,以及如何在GridPanel中加入SearchField搜索框控件,并强调了查询参数query的使用。通过示例代码展示了错误与正确的配置位置对比,帮助开发者避免常见错误。
1014

被折叠的 条评论
为什么被折叠?



