By - lmypersonPosted on 2025年7月11日Posted in 笔记导航切换样式<script> $("#main-menu li a").each(function(){ $this = $(this); if($this[0].href==String(window.location)){ $this.parent().addClass("cur"); $this.addClass('acur'); } }); </script> 0 0 Tags:js