<?php
require_once("../global.php");
require_once("js/test.php"); //导入php外部文件 路径是父级文件位置为准
//d();
?>
<script type="text/javascript" src="js/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="js/ligerTree.js"></script>
<link rel="stylesheet" href="css/ligerui-tree.css" type="text/css" /><!--导入css外部文件,是已该文件路径位置为准-->
<script>
$(function(){
$("#tree").ligerTree({
data: [
{ text: '节点1', children: [
{ text: '节点1.1' },
{ text: '节点1.2' },
{ text: '节点1.3', children: [
{ text: '节点1.3.1' },
{ text: '节点1.3.2' }
]
},
{ text: '节点1.4' }
]
},
{ text: '节点2' },
{ text: '节点3' },
{ text: '节点4' }
]
});
});
</script>
<ul id="tree"></ul>
require_once("../global.php");
require_once("js/test.php"); //导入php外部文件 路径是父级文件位置为准
//d();
?>
<script type="text/javascript" src="js/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="js/ligerTree.js"></script>
<link rel="stylesheet" href="css/ligerui-tree.css" type="text/css" /><!--导入css外部文件,是已该文件路径位置为准-->
<script>
$(function(){
$("#tree").ligerTree({
data: [
{ text: '节点1', children: [
{ text: '节点1.1' },
{ text: '节点1.2' },
{ text: '节点1.3', children: [
{ text: '节点1.3.1' },
{ text: '节点1.3.2' }
]
},
{ text: '节点1.4' }
]
},
{ text: '节点2' },
{ text: '节点3' },
{ text: '节点4' }
]
});
});
</script>
<ul id="tree"></ul>