<img class="yyicon1" id="showLeft" src="${contextPath}/resources/web/images/rtk.png"> <nav class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left" id="cbp-spmenu-s1"> <h3>Menu</h3> <a href="${contextPath}/web/logout.htm" >退出登录</a> </nav> <script src="${contextPath}/resources/h5/js/classie.js"></script> <script> var menuLeft = document.getElementById('cbp-spmenu-s1'), showLeft = document.getElementById('showLeft'), body = document.body; showLeft.onclick = function() { classie.toggle(this, 'active'); classie.toggle(menuLeft, 'cbp-spmenu-open'); disableOther('showLeft'); }; function disableOther(button) { if (button !== 'showLeft') { classie.toggle(showLeft, 'disabled'); } } </script>