这是我第一次尝试将用户定义的参数传递给 IE9 的 extjs(4.0.1) 中的处理函数。我有下面的代码,但它会抛出一个错误,指出SCRIPT438: Object doesn't support property or method 'createDelegate'
. 我不确定我做错了什么。请帮忙。
.js 文件:
Ext.onReady(function() {
var appendBooleanOrInsertionIndex = 0;
var myButtonHandler = function(item,a, b, arg){
alert(a + " "+ b);
};
var myButton = new Ext.Button({
id : 'myButton',
//renderTo : 'mybutton',
text : 'Save',
handler : myButtonHandler.createDelegate(this, ['Hi', 'Kart'], appendBooleanOrInsertionIndex),
scope : this
});
});