Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有Ext.getCmp("id").disable();并且它适用于 FF 但不适用于 IE,如果我的面板 id 是 test,或者面板名称是 test,我将如何禁用它而不从头开始禁用:true?
Ext.getCmp("id").disable();
尝试这个 :
Ext.getCmp('id').setDisabled(true);
setDisabled( Boolean disabled ) :通过布尔值设置禁用/启用的便利功能。
检查文档