Extjs3 中 可以这样获取 this.getNodeById(targetId).select(); //this 代表当前treepanel对象
Extjs4 没有了 treeNode。所以只能通过this.getSelectionModel().select(currentNode); //currentNode表示当前要选中的node
本文深入探讨了在 ExtJS3 和 ExtJS4 之间的迁移过程,特别关注了如何在 ExtJS4 中替代 ExtJS3 中的 treeNode 对象。通过实例演示了如何使用 this.getSelectionModel() 方法来选择节点,旨在为开发者提供平滑过渡的路径。
Extjs3 中 可以这样获取 this.getNodeById(targetId).select(); //this 代表当前treepanel对象
Extjs4 没有了 treeNode。所以只能通过this.getSelectionModel().select(currentNode); //currentNode表示当前要选中的node
1284

被折叠的 条评论
为什么被折叠?