var store = Ext.create('Ext.data.TreeStore', {
proxy: {
type: 'ajax',
url: 'FoundationManage.ashx'
},
root: {
text: '',
cls: "nodecls",
expanded: true,
parentId: 'parentId'
}, folderSort: true
}); tree = Ext.create('Ext.tree.Panel', {
store: store,
renderTo: 'treeDiv',
height: 380,
width: '100%', border: 0,
frame: false,
bodyStyle: "background-color:#E2F2FD;",
useArrows: false,
rootVisible: false,
layout: {
type: "fit",
align: "right"
} });
这段代码是完成一个树控件的。 现在 我想通过id查找到对应的itemdata
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货