JavaScript根据一个元素的显示隐藏控制另一个元素的显示和隐藏
<script> function xianshi(){ var odaohang1=document.getElementById('daohang1'); var ozuocedaohang=document.getElementById('zuocedaohang1'); var otoggle=document.getElementById('toggle-sidebar'); if($('#zuocedaohang1').is(':hidden') ){ odaohang1.style.display='none'; } ozuocedaohang.style.display='block'; } </script>
欢迎访问每天进步网:https://meitianjinbu.cn/