treedata.htm 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title></title>
  5. <script src="../../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  6. <link href="../../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  7. <script src="../../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  8. <script src="../../lib/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. $(function ()
  11. {
  12. $("#tree1").ligerTree({
  13. data: [
  14. { text: '节点1', children: [
  15. { text: '节点1.1' },
  16. { text: '节点1.2' },
  17. { text: '节点1.3', children: [
  18. { text: '节点1.3.1' },
  19. { text: '节点1.3.2' }
  20. ]
  21. },
  22. { text: '节点1.4' }
  23. ]
  24. },
  25. { text: '节点2' },
  26. { text: '节点3' },
  27. { text: '节点4' }
  28. ]
  29. });
  30. });
  31. </script>
  32. </head>
  33. <body style="padding:10px">
  34. <div style="width:200px; height:300px; margin:10px; float:left; border:1px solid #ccc; overflow:auto; ">
  35. <ul id="tree1"></ul>
  36. </div>
  37. <div style="display:none">
  38. </div>
  39. </body>
  40. </html>