日期:2014-05-17  浏览次数:20582 次

easyui tree除了传json的url能否直接传json数据进去
除了传json的url
能否直接传json数据进去

$('#tt').tree({   
    url:'tree_data.json'  
});  
easyui json

------解决方案--------------------
Properties: data : The node data to be loaded. 
$('#tt').tree({
data: [{
text: 'Item1',
state: 'closed',
children: [{
text: 'Item11'
},{
text: 'Item12'
}]
},{
text: 'Item2'
}]
});





不看API的吗?  地址: http://www.jeasyui.com/documentation/index.php#