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=~ emplateclientTemplate.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>

原文地址:https://www.cnblogs.com/zhang-wenbin/p/5959747.html