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.
我需要知道如何通过代码启用/禁用按钮;
到目前为止我的工作;
var button= Ext.ComponentQuery.query('#id> #button1')[0]; button.disable();
我也试过;
button.setDisable(true);
没有任何效果。解决方案是什么?
你能隐藏按钮吗? button.Visible = false;
button.set({disabled: 'disabled'});