ExtJS 工具栏 分页事件参数
时间:2021-06-30 09:22:37|栏目:|点击: 次
例如:载入第一页的时候
代码:
store.load({params:{start:0,limit:pageSize,Keyword:Ext.getCmp('input_name').getValue()}});
当单击下一页(上一页)时带参数
doLoad : function(start){
record_start = start;
var o = {}, pn = this.paramNames;
o[pn.start] = start;
o[pn.limit] = this.pageSize;
var Keyword=Ext.getCmp('input_name').getValue(); //获取参数
o['Keyword'] = Keyword ;//参数写入
this.store.load({params:o});//载入
}
代码:
复制代码 代码如下:
store.load({params:{start:0,limit:pageSize,Keyword:Ext.getCmp('input_name').getValue()}});
当单击下一页(上一页)时带参数
复制代码 代码如下:
doLoad : function(start){
record_start = start;
var o = {}, pn = this.paramNames;
o[pn.start] = start;
o[pn.limit] = this.pageSize;
var Keyword=Ext.getCmp('input_name').getValue(); //获取参数
o['Keyword'] = Keyword ;//参数写入
this.store.load({params:o});//载入
}
上一篇:KesionCMS科讯商业版(ac+sql)+动网论坛结合程序脚本之家修正版
栏 目:
下一篇:docker 容器上编译 go 程序提示找不到文件问题
本文标题:ExtJS 工具栏 分页事件参数
本文地址:http://www.codeinn.net/misctech/150441.html






