function InitTree1() {
$("#tt").tree({
data: [{
id: "0",
text: "地图文档",
children: [{
id: "01",
text: "基础地理",
children: [{
id: "011",
text: "地形",
children: [{
id: "0111",
text: "坡度"
},
{
id: "0112",
text: "坡向"
},
{
id: "0113",
text: "起伏度"
},
]
},
{
id: "012",
text: "地貌"
},
{
id: "013",
text: "地质",
children: [{
id: "0131",
text: "岩性"
},
{
id: "0132",
text: "工程岩组"
},
{
id: "0133",
text: "断裂带"
},
]
},
{
id: "014",
text: "界限",
children: [{
id: "0141",
text: "行政区界"
}, ]
}
]
},
{
id: "02",
text: "水文",
children: [{
id: "021",
text: "水系",
children: [{
id: "0211",
text: "一级水系"
},
{
id: "0212",
text: "二级水系"
},
{
id: "0213",
text: "三级水系"
},
]
},
{
id: "022",
text: "湖泊"
},
]
},
{
id: "03",
text: "道路交通",
children: [{
id: "031",
text: "国道"
},
{
id: "032",
text: "省道"
},
{
id: "033",
text: "县级公路"
},
]
},
{
id: "04",
text: "xxxxxx",
children: [{
id: "041",
text: "xxx"
},
{
id: "042",
text: "xxxx"
},
{
id: "043",
text: "xx"
},
]
}
]
}],
dnd: true, //可拖放
lines: true, //显示树线条
checkbox: true, //显示复选框
animate: true //展开动画效果
});
}