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.
我正在使用 extjs-4,我想根据正在加载的数据动态启用/禁用文本字段。
我尝试在需要时将disabled和readOnly属性设置为 true/false,但它似乎没有被应用。
还有其他方法可以实现吗?
在创建字段后调用setDisabled和setReadOnly方法TextField来操作这些属性。
setDisabled
setReadOnly
TextField