js dtree树形结构问题。
<html><head><title></title><linkrel="StyleSheet"href="dtree.css"type="text/css"/><scr...
<html>
<head>
<title></title>
<link rel="StyleSheet" href="dtree.css" type="text/css" />
<script type="text/javascript" src="dtree.js"></script>
</head>
<body>
<h2>Example</h2>
<div class="dtree">
<script type="text/javascript">
d = new dTree('d');
d.add(0,-1,'My example tree');
d.add(1,0,'Node 1','');
d.add(2,0,'Node 2','');
d.add(3,1,'Node 1.1','');
d.add(4,0,'Node 3','');
document.write(d);
</script>
</div>
</body>
</html>为什么在页面中树形图显示不出来,哪位高手赐教下,谢谢了。 展开
<head>
<title></title>
<link rel="StyleSheet" href="dtree.css" type="text/css" />
<script type="text/javascript" src="dtree.js"></script>
</head>
<body>
<h2>Example</h2>
<div class="dtree">
<script type="text/javascript">
d = new dTree('d');
d.add(0,-1,'My example tree');
d.add(1,0,'Node 1','');
d.add(2,0,'Node 2','');
d.add(3,1,'Node 1.1','');
d.add(4,0,'Node 3','');
document.write(d);
</script>
</div>
</body>
</html>为什么在页面中树形图显示不出来,哪位高手赐教下,谢谢了。 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询