0

我在 ExtJS 表单中有一个问题。当在我的表单上选择一个单选按钮时,焦点事件未在所有浏览器中执行。就像在 Firefox (Mac) 中一切正常,但在 Google Chrome (Mac) 上没有任何效果。我没有在 PC 中仅在 Mac 中测试我的 ExtJS。有时在 Firefox 中,所有浏览器负载都无法正常工作。

下面是一些关于函数的源代码,这些函数并不总是能正常工作:

Radio1.on('focus', function(){

            //alert('test1');
            Ext.getCmp('combo1').enable();
            Ext.getCmp('combo2').disable();

            Ext.getCmp('option3').disable();
            Ext.getCmp('option4').disable();
            Ext.getCmp('option5').disable();
            Ext.getCmp('option6').disable();
            Ext.getCmp('option7').disable();
            Ext.getCmp('option8').disable();
            Ext.getCmp('option9').disable();
            Ext.getCmp('option10').disable();

        });

Radio2.on('focus', function(){

            //alert('test2');
            Ext.getCmp('combo1').disable();
            Ext.getCmp('combo2').enable();

            Ext.getCmp('option3').enable();
            Ext.getCmp('option4').enable();
            Ext.getCmp('option5').enable();
            Ext.getCmp('option6').enable();
            Ext.getCmp('option7').enable();
            Ext.getCmp('option8').enable();
            Ext.getCmp('option9').enable();
            Ext.getCmp('option10').enable();

        });

如何修复代码?有任何想法吗?

4

0 回答 0