5
我有問題,我的控制器EXTJS 4.2參數在聽衆功能
Ext.define('app.controller.myController', {
init: function() {
this.control({
'#myinputfield': {
change: this.textFieldChange(parameter)
}
})
},
textFieldChange: function(parameter) {
//do something
}
});
它的外觀像這樣 的問題是,當我的網站後,給這裏的參數
change: this.textFieldChange(parameter)
那麼它火起來了負載,我不知道爲什麼。
沒有參數它的等待更改事件像它應該 可以any1幫助我嗎?