Giter VIP home page Giter VIP logo

dropdowntree's Introduction

使用说明:

1.引用jquery,引用一段css样式
2.如果对图片不满意,可以替换。但图片与js_JqTree.js的相对位置路径不建议改变,图片路径是动态获取的当前js的路径
3,在js代码中的引用方式

      var data=[{
                id:'00009',
                name:'阿萨德',
                pid:''          // 对父级别id没有要求,如果没有更上一级别的id则自动作为父节点
              },{
                  id:'1',
                  name:'啊是的呢',
                  pid:'00009'
              },{
                  id:'2',
                  name:'爱仕达多所',
                  pid:'00009'
              }]

      var tree=new jqTree({
        treeBox:'#treeBox',
        data:data,
        searchBtn:{        // 不需要搜索框可以去掉这一段
          show:true,
          placeHolder:'输入查询'
        },
      },function(_this){
       console.log($(_this).attr("data-value"))    //  自己需要根据业务添加的事件
      });

两种显示方式,如图:

图片加载失败

dropdowntree's People

Contributors

yangfeng727 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.