-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtree.html
146 lines (144 loc) · 4.38 KB
/
tree.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>je-tree</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="wcodeth=device-wcodeth, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="css/jeui.css" media="all">
<script type="text/javascript" src="js/modules/jeui.js"></script>
</head>
<body>
<div class="je-p20">
<blockquote class="je-quote je-f16">
tree树列表
</blockquote>
<div id="trees" class="je-tree"></div>
</div>
<script type="text/javascript">
jeui.use(["jquery","jeTree"],function () {
var jsonlist = [
{
tid: "M001",
name: "首页",
url: "",
childlist: [
{
tid: "M006",
name: "je原创插件库",
url: "http://www.jayui.com/",
childlist: ""
},
{
tid: "M007",
name: "别克",
url: "",
childlist: ""
}
]
},
{
tid: "M002",
name: "车辆买卖",
url: "",
open: true,
childlist: [
{
tid: "M003",
name: "新车",
url: "",
open: true,
childlist: [
{
tid: "M006",
name: "奥迪",
url: "",
childlist: [
{
tid: "M007",
name: "别克",
url: "",
childlist: [
{
tid: "M006",
name: "奥迪",
url: "",
childlist: ""
},
{
tid: "M007",
name: "别克",
url: "",
childlist: ""
}
]
}
]
},
{
tid: "M007",
name: "别克",
url: "",
childlist: ""
}
]
},
{
tid: "M004",
name: "二手车",
url: "",
childlist: ""
},
{
tid: "M005",
name: "改装车",
url: "",
childlist: [
{
tid: "M006",
name: "奥迪",
url: "",
childlist: ""
},
{
tid: "M007",
name: "别克",
url: "",
childlist: ""
}
]
}
]
},
{
tid: "M006",
name: "宠物",
url: "",
childlist: [
{
tid: "M006",
name: "奥迪",
url: "",
childlist: ""
},
{
tid: "M007",
name: "别克",
url: "",
childlist: ""
}
]
}
];
$("#trees").jeTree({
datas:jsonlist,
itemfun:function (item) {
console.log(item)
}
})
})
</script>
<!--http://www.qdfuns.com/notes/13967/3cdebc6a132f33a3e65aa2b6019a7487.html-->
</body>
</html>