js代码
<script src="js/jquery-2.1.1.min.js" type="text/javascript"></script> <script> $(window).load(function () { $('.btn-nav').on('click tap', function () { $('.nav-content').toggleClass('showNav hideNav').removeClass('hidden'); $(this).toggleClass('animated'); }); }); </script>