这是之前在网上找的, 可是在Ext 3.3中运行时有个小错误, 改了一下发上来. Ext.namespace('Ext.ux.Andrie'); /** * @class Ext.ux.Andrie.pPageSize * @extends Ext.PagingToolbar A combobox control that glues itself to a PagingToolbar's pageSize configuration property. * @constructor Create a new PageSize plugin. * @param {Object} config Configuration options * @author Andrei Neculau - andrei.neculau@gmail.com / http://andreineculau.wordpress.com * @version 0.6 */ Ext.ux.Andrie.pPageSize = function(config) { Ext.apply(this, config); }; Ext.extend(Ext.ux.Andrie.pPageSize, Ext.util.Observable, { /** * @cfg {String} beforeText Text to display before the comboBox */ beforeText : '每页', /** * @cfg {String} afterText Text to display after the comboBox */ afterText : ' 条', /** * @cfg {Mixed} addBefore Toolbar item(s) to add befor