<script> $(document).ready(function(){ $('#menu-top-1 li a').each(function(){ if($($(this))[0].href==String(window.location)) $(this).parent().addClass('active'); }); }) </script>
转载于:https://www.cnblogs.com/juebai/p/9621686.html
<script> $(document).ready(function(){ $('#menu-top-1 li a').each(function(){ if($($(this))[0].href==String(window.location)) $(this).parent().addClass('active'); }); }) </script>
转载于:https://www.cnblogs.com/juebai/p/9621686.html