easyui tree 折叠节点

Posted 张文斌

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了easyui tree 折叠节点相关的知识,希望对你有一定的参考价值。

<ul id="jihuidian" class="easyui-tree" data-options="onBeforeLoad:function(){var rooNode = $(‘#jihuidian‘).tree(‘getRoots‘);$(‘#jihuidian‘).tree(‘collapse‘,rooNode[0].target);$(‘#jihuidian‘).tree(‘collapse‘,rooNode[1].target);$(‘#jihuidian‘).tree(‘collapse‘,rooNode[2].target);$(‘#jihuidian‘).tree(‘collapse‘,rooNode[3].target);} >

<li>
<span id="‘createClientInfoMenu">维护客户信息</span>
<ul>
<!--<li><span><a id="btnmoban" href="/Handler/FileDownLoadHandler.ashx?filePath=~\template\clientTemplate.xlsx" target="content">客户信息模板下载</a></span></li>-->
<li><span><a id="btnpiliang" href="/UI/CustomerInformation/CustomerInformationUpload.aspx" target="content">客户信息批量上传</a></span></li>
<li><span><a id="shougong" href="/UI/CustomerInformation/CustomerInformationHandInput.aspx" target="content">客户信息手工录入</a></span></li>
<li><span><a id="btnxiugai" href="/UI/CustomerInformation/CustomerInformationUpdate.aspx" target="content">客户信息修改及补充</a></span></li>
</ul>
</li>
<li>
<span id="searchClientInfoMenu">客户信息查询</span>
<ul>
<li><a href="/UI/CustomerInformation/CustomerInformationSearch.aspx" target="content">客户信息查询</a></li>
</ul>

</li>
<li>
<span id="activity">活动</span>
<ul>
<li><a href="/UI/CustomerInformation/CreateActivity.html" target="content">活动创建</a></li>
<li><a href="/UI/CustomerInformation/ActivitiesSearch.aspx" target="content">活动查询</a></li>
</ul>
</li>
<li>
<span>客户信息删除</span>
<ul>
<li><a href="#">客户信息删除</a></li>
</ul>
</li>

</ul>

以上是关于easyui tree 折叠节点的主要内容,如果未能解决你的问题,请参考以下文章

easyui tree怎么获取所有节点

easyui tree refresh 问题

easyui-tree扩展方法

easyui tree 怎么将数据库的某一字段的值作为树节点

easyui中tree树默认展开第一个根节点?

问大神们一个问题,easyui-tree多节点全部加载速度缓慢的解决办法?