![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
struts
xiaomizaza
<script language="javascript" src="jquery.js" ></script>
<script language="javascript">
$(document).ready(function(){
//隐藏所有章下的小节
$(".content").each(function(){
$(this).hide();
});
//点击章节,隐藏和显示里面的小节
$("li div").toggle(function(){
展开