EXT中怎么去掉或者隐藏根节点,请举例说明。谢谢、

2025-05-11 01:11:41
推荐回答(2个)
回答1:

Ext.create('Ext.tree.Panel',{
title:'岗位列表',
region:'west',
rootVisible: false,
useArrows: true,
frame: true,
width:'30%',
store:pageVar.treeStore,

}
加入rootVisible:false这个属性就可以

回答2:

rootVisible: false,