esayui 1.4.3 选项卡tabs动态添加树tree

 

核心就一句:

content: '<ul id="leftTree'+menuId+'"></ul>'

 

$('#leftMenu').accordion('add', {
	id: "leftAccordion"+menuId,
	title: title,
	content: '<ul id="leftTree'+menuId+'"></ul>'//,
	//selected: false
});

$('#leftTree'+menuId).tree({    
	data: data.treeNodeVoList,
	onClick: function(node){
		alert(node.id);
		alert(node.text);
	}
}); 

 

<div id="leftMenu" class="easyui-accordion" fit="true" border="false" animate="false">

</div>

 

你可能感兴趣的:(tree,添加,动态,tabs,esayUI)