Ext js 关于button的一个问题 巨崩溃
//代码
Ext.onReady(function(){
var btn1Handler = function(button, event) {
// alert("11");
// alert('privVar1=' + privVar1);
// alert('this.btn1Text=' + this.btn1Text);
Ext.MessageBox.alert("hello","hello");
};
var btn = new Ext.Button({
text:'button1',
renderTo:'btn1-ct',
handler:btn1Handler
});
});
我使用Ext.MessageBox.alert("hello","hello"); 点button无反应,但使用alert('this.btn1Text=' + this.btn1Text)可以出
为什么啊? 那位高人指点下