ExtJS 工具栏 分页事件参数 |
本文标签:ExtJS,工具栏,分页事件 例如:载入第一页的时候 代码: 复制代码 代码如下: 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});//载入 } |