JS:Ext3的Store获取页索引递增值!
作者博客地址更换至CSDN,地址:http://blog.csdn.net/littlebrain4solving
只有Store与PagingToolbar进行绑定了才可以使用以下方式获取页的索引递增值!
this.gbbar = new Ext.PagingToolbar(); this.store = new Ext.data.JsonStore({ url : "entrustAction.do" , baseParams : { method : 'selectEntrustPageList' , start : 0 }, totalProperty : 'total' , root : 'results', fields : [ "entrustId" , "entrustTitle" , "entrustEndDate" , "user" , "userTel" , "entrustCn" , "entruestusername" , "disponseid" , "disponsecn" , "status" ] }); this.gbbar.bind(this.store); //此处是关键点,使用PagingToolbar的cursor属性获取页的递增值! alert(this.gbbar.cursor);
浙公网安备 33010602011771号