init: function() {this.control({'userlist textfield[id=searchId]':{keyup:function(textfield, e){if (e.getKey() == 13) {this.searchUserByEnter //此處該如何調用searchUserByEnter 所標記的方法}}}}searchUserByEnter:function(textfield){alert('call search function')var grid = textfield.ownerCt.ownerCt,store =grid.getStore(),tbar=textfield.ownerCt,searchInfo= tbar.down('textfield').getValue();store.on('beforeload', function (store, options) {var param = {param:searchInfo};Ext.apply(store.proxy.extraParams, param);});var pagebar = grid.down('pagingtoolbar');pagebar.movePrevious();grid.getStore().load({params:{ start:0, limit:5}});}
extjs函數調用方法?
慕蓋茨4494581
2019-02-05 10:06:06