testxtree.htm

来自「js“树”读取xml数据,我写了一个xml文档不用分层」· HTM 代码 · 共 30 行

HTM
30
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>

<title></title>
<!-- The xtree script file -->
<script src="xtree.js"></script>
<!-- Modify this file to change the way the tree looks -->
<link type="text/css" rel="stylesheet" href="xtree.css">

<style>
	body { background: white; color: black; }
	input { width: 120px; }
</style>

</head>
<body>
<div id="treediv"></div>
<script language="JavaScript" type="text/javascript">		
<!--
		var tree = new xmlTree('tree');
		tree.xmlFile = "xmltree.xml";
		tree.createTree("treediv");
//-->	
</script>	
	</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?