📄 demo.html
字号:
<!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 style="position: absolute; width: 200px; top: 0px; left: 0px; height: 100%; padding: 5px; overflow: auto;">
<!-- js file containing the tree content, edit this file to alter the menu,
the menu will be inserted where this tag is located in the document -->
<script src="tree.js"></script>
</div>
<div style="position: absolute; left: 205px; top: 10px;">
<input type="button" onclick="addNode();" style="width: 80px;" value="Add one" />
</div>
</body>
<script>
function addNode() {
if (tree.getSelected()) {
alert(tree.getSelected());
var nod=new WebFXTreeItem('New','test.html')
alert('nod'+nod);
tree.getSelected().add(nod);
}
}
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -