zoukankan      html  css  js  c++  java
  • easyui_tree

    • id: node id, which is important to load remote data
    • text: node text to show
    • state: node state, 'open' or 'closed', default is 'open'. When set to 'closed', the node have children nodes and will load them from remote site
    • checked: Indicate whether the node is checked selected.
    • attributes: custom attributes can be added to a node
    • children: an array nodes defines some children nodes

    state:closed--可能造成自动获取(无限获取),可改为state:open

    对多张表数据以树的形式展现可以用attributes来区分来自那张表

    $('#tr').tree({
      url: "ashx/tree.ashx",

      onClick: function (node) {

      if (node.attributes == "国家") {
      }

    });

    --1(表1,例:国家)

    ----11(表2,例:省/州)

    ----12

    ------121(表3,例:城市)

    --2

    ----22

    ----23

  • 相关阅读:
    django的用户认证模块(auth)
    算法
    图书管理系统
    mac系统中pycharm激活
    mac常见问题
    mysql安装
    restful规范及DRF基础
    MySQL存储引擎
    [python] with statement
    MySQL索引及执行计划
  • 原文地址:https://www.cnblogs.com/yuluhuang/p/3450730.html
Copyright © 2011-2022 走看看