jquery easyui tree 怎样更换树节点的图片
json文件:[{"text":"Languages","state":"closed","children":[{"id":"j1","text":"Java"},{"...
json文件:
[{
"text":"Languages",
"state":"closed",
"children":[{
"id":"j1",
"text":"Java"
},{
"id":"j2",
"text":"C#"
}]
}]
javascript:
<script type="text/javascript">
$(function () {
$('#tt').tree({
url: 'json_tree.json',
method: 'get'
});
});
</script>
html 页面:
<ul id="tt"></ul> 展开
[{
"text":"Languages",
"state":"closed",
"children":[{
"id":"j1",
"text":"Java"
},{
"id":"j2",
"text":"C#"
}]
}]
javascript:
<script type="text/javascript">
$(function () {
$('#tt').tree({
url: 'json_tree.json',
method: 'get'
});
});
</script>
html 页面:
<ul id="tt"></ul> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询