jQuery树形插件 jquery.dynatree.js

码农软件 · 软件分类 · jQuery 树形控件 · 2019-12-25 22:44:48

软件介绍

dynatree 是一个 jQuery 的插件,用来在网页上显示树形控件的脚本。

示例代码:

<html>
<head>
  <!-- 1. Include jQuery and dynatree libraries: -->
  <script src='../jquery/jquery.js' type='text/javascript'></script>
  <script src='../jquery/ui.core.js' type='text/javascript'></script>
  <script src='../jquery/jquery.cookie.js' type='text/javascript'></script>

  <link href='../src/skin/ui.dynatree.css' rel='stylesheet' type='text/css'>
  <script src='../src/jquery.dynatree.js' type='text/javascript'></script>
   
  <script type='text/javascript'>
  // Add code to initialize the tree when the document is loaded:
  $(function(){
    // 2. Attach the dynatree widget to an existing <div id="tree"> element
    //    and pass the tree options as an argument to the dynatree() function:
    $("#tree").dynatree({
      // Pass an array of nodes (and child nodes)
      children: [
        {title: "Item 1"},
        {title: "Folder 2", isFolder: true, key: "folder2",
          children: [
            {title: "Sub-item 2.1"},
            {title: "Sub-item 2.2"}
          ]
        },
        {title: "Item 3"}
      ],
      onActivate: function(dtnode) {
        // This function is called, when a node is clicked
        // A DynaTreeNode object is passed as argument.
        alert("You activated " + dtnode.data.title);
      }
    });
  });
  </script>
</head>
<body>
  <!-- 3. Add a <div> element where the tree should appear: -->
  <div id="tree"> </div>
  [...]
</body>
</html>

本文地址:https://codercto.com/soft/d/21959.html

精通EJB

精通EJB

罗曼 / 第1版 (2005年9月1日) / 2005-9 / 69.0

本书是EJB组件技术教程,专注于EJB的概念、方法、开发过程的介绍。全书共分为4个部分,首先对EJB编程基础进行介绍,其次重点关注EJB编程的具体内容和过程,然后对高级EJB进行了阐述,最后的附录收集了EJB组件技术相关的其他内容。作为一本交互性好、读起来有趣、涉及到EJB中各方面知识的书籍,本书确信这正是你所寻找的。  本书是关于EJB 2.1的经典书籍,是EJB开发者必备的参考书。全书共分为3......一起来看看 《精通EJB》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

在线进制转换器
在线进制转换器

各进制数互转换器

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具