-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdemo.html
More file actions
54 lines (52 loc) · 865 Bytes
/
demo.html
File metadata and controls
54 lines (52 loc) · 865 Bytes
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>A simple demo for folder2tree</title>
</head>
<body>
<div id="ctn"></div>
<script src="folder2tree.js"></script>
<script>
/**
* 初始化方法
*
* @param {Dom} 父级dom节点
* @param {Array} 描述文件夹层级关系对象
*/
folder2tree.init(document.getElementById("ctn"), [
{
"img" : [
"sprite.png",
"bg.png"
]
},{
"js": [{
"common": [
"jquery.js",{
"highcharts": [{
"modules": ["exporting.js"]
},
"highcharts.js"
]}
]
},{
"index": [
"mian.js",{
"modules": ["mod.video.js"]
}
]
}]
},{
"css": [
"base.css",
"index-main.css",
"index-video.css"
]
},
"index.html",
"favicon.ico"
]);
</script>
</body>
</html>