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 中的所有表单和面板,最好是在函数调用之前,然后在函数完成后启用?
如果你使用 ExtJS 4,你可以做这样的事情......
var panels = Ext.ComponentQuery.query('panel'); if (panels.length) { for (var i = 0, l = panels.length; i < l; i++) { panels[i].disable(); } }
您可以将负载掩码添加到 body 元素。那应该有同样的效果。函数完成时隐藏加载掩码。