这是我的 html 代码
<ul class="list">
<li class="pagenav">
<a title="Government" href="#">Government</a>
<ul>
<li class="page_item page-item-14"><a href="#">Code of Ordinances</a></li>
<li class="page_item page-item-5267"><a href="#">Finance</a>
<ul class="children">
<li class="page_item page-item-16"><a href="#">Fiscal Year</a></li>
<li class="page_item page-item-5280"><a href="#">Comprehensive</a></li>
</ul>
</li>
<li class="page_item page-item-5267"><a href="#">Finance year</a>
<ul class="children">
<li class="page_item page-item-16"><a href="#">Year</a></li>
<li class="page_item page-item-5280"><a href="#">Comprehensive year</a></li>
</ul>
</li>
</ul>
</li>
</ul>
默认显示这样
Government
Code of Ordinances
Finance
Finance year
然后点击像这样的金融节目
Government
Code of Ordinances
Finance
Fiscal Year
Comprehensive
Finance year
我的意思是说我想默认隐藏财务和财务年度的子菜单,然后单击财务和财务年度该时间子菜单显示和隐藏