第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

extjs函數(shù)調(diào)用方法?

extjs函數(shù)調(diào)用方法?

慕蓋茨4494581 2019-02-05 10:06:06
init: function() {this.control({'userlist textfield[id=searchId]':{keyup:function(textfield, e){if (e.getKey() == 13) {this.searchUserByEnter //此處該如何調(diào)用searchUserByEnter 所標(biāo)記的方法}}}}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}});}
查看完整描述

2 回答

?
眼眸繁星

TA貢獻(xiàn)1873條經(jīng)驗(yàn) 獲得超9個贊

當(dāng)前this所引用的作用域已經(jīng)改變了,可簡單修改為
init: function() {
var me = this;//保存作用域
this.control({
'userlist textfield[id=searchId]':{
keyup:function(textfield, e){

if (e.getKey() == 13) {
me .searchUserByEnter(textfield); //調(diào)用原作用域方法
}
}
}
}
規(guī)范點(diǎn)可參照extjs寫成scope參數(shù)控制this



查看完整回答
反對 回復(fù) 2019-03-14
  • 2 回答
  • 0 關(guān)注
  • 990 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號