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 面板添加一个项目。
this.add(new_el); this.doLayout();
它工作正常。但在某些情况下,我必须在确切位置添加 {new_el},而不是最后。
例如倒数第二个。
在 Extjs 3.2.1 中找不到简单的方法
您应该使用insert()而不是add().
insert()
add()
Mypanel.insert(0,cmp1); Mypanel.insert(4,cmp2);