jsp中怎么实现树的动态输出
展开全部
JSP
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Destroydrop » Javascripts » Tree</title>
<link rel="StyleSheet" href="dtree.css" mce_href="dtree.css" type="text/css" />
<mce:script type="text/javascript" src="dtree.js" mce_src="dtree.js"></mce:script>
</head>
<body>
<h1><a href="/" mce_href="">Destroydrop</a> » <a href="/javascripts/" mce_href="javascripts/">Javascripts</a> » <a href="/javascripts/tree/" mce_href="javascripts/tree/">Tree</a></h1>
<h2>Example</h2>
<div class="dtree">
<p><a href="javascript: d.openAll();" mce_href="javascript: d.openAll();">open all</a> | <a href="javascript: d.closeAll();
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Destroydrop » Javascripts » Tree</title>
<link rel="StyleSheet" href="dtree.css" mce_href="dtree.css" type="text/css" />
<mce:script type="text/javascript" src="dtree.js" mce_src="dtree.js"></mce:script>
</head>
<body>
<h1><a href="/" mce_href="">Destroydrop</a> » <a href="/javascripts/" mce_href="javascripts/">Javascripts</a> » <a href="/javascripts/tree/" mce_href="javascripts/tree/">Tree</a></h1>
<h2>Example</h2>
<div class="dtree">
<p><a href="javascript: d.openAll();" mce_href="javascript: d.openAll();">open all</a> | <a href="javascript: d.closeAll();
2017-11-14
展开全部
function Node(id, pid, name, url, title, target, icon, iconOpen, open, appendedStr) {
this.id = id;
this.pid = pid;
this.name = name;
this.url = url;
this.title = title;
this.target = target;
this.icon = icon;
this.iconOpen = iconOpen;
this.appendedStr = appendedStr;
this._io = open || false;
this._is = false;
this._ls = false;
this._hc = false;
this._ai = 0;
this._p;
};
// Tree object
function tree(objName,path) {
this.path = path;
this.config = {
target : null,
folderLinks : true,
useSelection : true,
useCookies : true,
useLines : true,
useIcons : true,
useStatusText : false,
closeSameLevel : false,
inOrder : false
}
this.id = id;
this.pid = pid;
this.name = name;
this.url = url;
this.title = title;
this.target = target;
this.icon = icon;
this.iconOpen = iconOpen;
this.appendedStr = appendedStr;
this._io = open || false;
this._is = false;
this._ls = false;
this._hc = false;
this._ai = 0;
this._p;
};
// Tree object
function tree(objName,path) {
this.path = path;
this.config = {
target : null,
folderLinks : true,
useSelection : true,
useCookies : true,
useLines : true,
useIcons : true,
useStatusText : false,
closeSameLevel : false,
inOrder : false
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询