• <tfoot id='WDYhR'></tfoot>
  • <small id='WDYhR'></small><noframes id='WDYhR'>

      <bdo id='WDYhR'></bdo><ul id='WDYhR'></ul>
    <i id='WDYhR'><tr id='WDYhR'><dt id='WDYhR'><q id='WDYhR'><span id='WDYhR'><b id='WDYhR'><form id='WDYhR'><ins id='WDYhR'></ins><ul id='WDYhR'></ul><sub id='WDYhR'></sub></form><legend id='WDYhR'></legend><bdo id='WDYhR'><pre id='WDYhR'><center id='WDYhR'></center></pre></bdo></b><th id='WDYhR'></th></span></q></dt></tr></i><div id='WDYhR'><tfoot id='WDYhR'></tfoot><dl id='WDYhR'><fieldset id='WDYhR'></fieldset></dl></div>

    <legend id='WDYhR'><style id='WDYhR'><dir id='WDYhR'><q id='WDYhR'></q></dir></style></legend>

        LayUI tree组件实现展开全部和折叠全部的功能

        html代码部分: div id="menuTree" class="demo-tree-more"/div js组件渲染代码 tree.render({ elem: '#menuTree', data: getData(), //ajax获取data数据 showCheckbox: true, //是否显示复选 id: 'demoId' }); 点击全部展开和全部折叠按钮事件 //menuTree换
        • <bdo id='jHCG6'></bdo><ul id='jHCG6'></ul>

                  <tbody id='jHCG6'></tbody>
                • <tfoot id='jHCG6'></tfoot>

                  <small id='jHCG6'></small><noframes id='jHCG6'>

                  <i id='jHCG6'><tr id='jHCG6'><dt id='jHCG6'><q id='jHCG6'><span id='jHCG6'><b id='jHCG6'><form id='jHCG6'><ins id='jHCG6'></ins><ul id='jHCG6'></ul><sub id='jHCG6'></sub></form><legend id='jHCG6'></legend><bdo id='jHCG6'><pre id='jHCG6'><center id='jHCG6'></center></pre></bdo></b><th id='jHCG6'></th></span></q></dt></tr></i><div id='jHCG6'><tfoot id='jHCG6'></tfoot><dl id='jHCG6'><fieldset id='jHCG6'></fieldset></dl></div>
                • <legend id='jHCG6'><style id='jHCG6'><dir id='jHCG6'><q id='jHCG6'></q></dir></style></legend>
                • html代码部分:
                  <div id="menuTree" class="demo-tree-more"></div>
                  js组件渲染代码
                     tree.render({
                         elem: '#menuTree',
                         data: getData(),  //ajax获取data数据
                         showCheckbox: true,  //是否显示复选
                         id: 'demoId' 
                     });
                  点击全部展开和全部折叠按钮事件
                  //menuTree换成你自己的id就行
                  var treeContainer = document.querySelector('#menuTree');
                  var expandIcons = treeContainer.querySelectorAll('.layui-icon-addition');  //展开代码
                  var expandIcons = treeContainer.querySelectorAll('.layui-icon-subtraction'); //折叠代码
                  expandIcons.forEach(function(icon) {
                      var clickEvent = new MouseEvent('click', {
                      'view': window,
                      'bubbles': true,
                      'cancelable': true
                  });
                  icon.dispatchEvent(clickEvent);
                  });
                   
                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  parent.layer.open({ //在父窗口打开 type: 2, //type必须为2,否则打印时候获取不到iframe btn: ['打印','关闭'], title: parent.bigOpenTitle + parent.bigOpenContent + "div class='big-open-title'表单/div", offset: 'auto', skin: 'big-open', area:
                  layui使用tips鼠标悬停提示语的实例代码,具体代码如下,有三种方式: !DOCTYPE htmlhtml lang="zh" head meta charset="UTF-8" title测试-liu 劉/title/headscript src="https://cdn.staticfile.org/layui/2.7.6/layui.js"/scriptscript src="https://code.j
                  layui点击图片实现预览功能,要怎么实现呢? HTML内使用代码: img src="..." alt="..." width="200px" height="200px" class="layui-upload-img" onclick="previewImg(this)" JS代码部分: function previewImg(obj) { var img = new Image(); img.src = obj
                  layui.laydate默认当前时间时分秒,详细代码如下: //加载日期控件信息 layui.use('laydate', function() { var laydate = layui.laydate; var now = new Date(); laydate.render({ elem: '#publishTime', theme: 'molv', type: 'datetime', trigger: 'click'
                  layui表格中判断内容为视频或者图片并实现预览,具体实例代码如下: !DOCTYPE htmlhtmlhead titleLayui:数据表格table中预览图片、视频/title meta charset="utf-8"/ link rel="stylesheet" href="https://www.layui1.com/static/layui/dist/css/layui.css"
                  layui校验数据后关闭layer弹窗的示例代码,具体代码如下: $.ajax({ url:"/other/notice_push", data:{title:title,content:content}, type: 'POST', dataType: 'json', success: function(res){ if(res.code == 200){ layer.msg(res.msg,{icon:6,time:2000})
                  <legend id='5rme2'><style id='5rme2'><dir id='5rme2'><q id='5rme2'></q></dir></style></legend>
                      <tbody id='5rme2'></tbody>
                    <tfoot id='5rme2'></tfoot>

                      • <bdo id='5rme2'></bdo><ul id='5rme2'></ul>

                            <small id='5rme2'></small><noframes id='5rme2'>

                            <i id='5rme2'><tr id='5rme2'><dt id='5rme2'><q id='5rme2'><span id='5rme2'><b id='5rme2'><form id='5rme2'><ins id='5rme2'></ins><ul id='5rme2'></ul><sub id='5rme2'></sub></form><legend id='5rme2'></legend><bdo id='5rme2'><pre id='5rme2'><center id='5rme2'></center></pre></bdo></b><th id='5rme2'></th></span></q></dt></tr></i><div id='5rme2'><tfoot id='5rme2'></tfoot><dl id='5rme2'><fieldset id='5rme2'></fieldset></dl></div>