用struts2和Extjs从数据库读取数据生成动态树的实例,有增删改查最好 5
展开全部
var tree = new Ext.tree.TreePanel({
renderTo:"div1",
title : '树',
width : 250,
root : new Ext.tree.AsyncTreeNode({
text:"我是根",
id : '0'
}),
loader : new Ext.tree.TreeLoader({
dataUrl : '/zyerp/jiagonggongyi
listeners: {
beforeload: function(treeloader, node) {
treeloader.baseParams.fujiedian = node.id;
treeloader.baseParams.checked = false;
}
}
})
});
renderTo:"div1",
title : '树',
width : 250,
root : new Ext.tree.AsyncTreeNode({
text:"我是根",
id : '0'
}),
loader : new Ext.tree.TreeLoader({
dataUrl : '/zyerp/jiagonggongyi
listeners: {
beforeload: function(treeloader, node) {
treeloader.baseParams.fujiedian = node.id;
treeloader.baseParams.checked = false;
}
}
})
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询