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

商业模式新生代

商业模式新生代

亚历山大•奥斯特瓦德 (Alexander Osterwalder)、伊夫•皮尼厄 (Yves Pigneur) / 王帅、毛心宇、严威 / 机械工业出版社 / 2011-8-15 / 88.00元

中文官网:http://www.bizmodel.org 内容简介:当你愉快的看完第一章:商业模式画布,赫然发现这些构成要素全 都交织成一幅清晰的图像在脑海中呈现,它们如何互相影响、如何交互作用全都历历在目。利用商业模式画布分析瑞士银行、Google、Lego、Wii 、Apple等跨国企业,归纳出三种不同的产业 模式,也涵括新近的热门现象免费效应及长尾理论等。在这些有趣的例子中,我们不仅更......一起来看看 《商业模式新生代》 这本书的介绍吧!

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

各进制数互转换器

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具