-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml.html
41 lines (40 loc) · 1.35 KB
/
html.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
<!DOCTYPE html>
<html>
<head>
<style> </style>
<link rel="stylesheet" href="css/ztree/migrate/zTreeStyle.css" type="text/css">
<script src="scripts/jquery/jquery-3.1.1.min.js?ver=v1501259548"></script>
<script src="scripts/ztree/jquery.ztree.3.5.30.all.js"></script>
<script>
$(function() {
});
</script>
<SCRIPT LANGUAGE="JavaScript">
var zTreeObj;
// zTree configuration information, refer to API documentation (setting details)
var setting = {
edit:{
enable: true
}
};
// zTree data attributes, refer to the API documentation (treeNode data details)
$(document).ready(function(){
var zNodes = [
{name:"test"},
{name:"test"},
{name:"test"},
{name:"test"},
{name:"test"},
{name:"test"},
{name:"test"}
];
zTreeObj = $.fn.zTree.init($("#treeDemo"), setting, zNodes);
});
</SCRIPT>
</head>
<body style="background-color: #aca8a4">
<div>
<ul id="treeDemo" class="ztree"></ul>
</div>
</body>
</html>