导航active ╰+哭是因爲堅強的太久メ 2022-05-22 10:49 130阅读 0赞 $("#navigation-block a").each(function(){ $this = $(this); if($this[0].href==String(window.location)){ $("#navigation-block li").removeClass("active"); $this.parent("li").addClass("active"); } });
还没有评论,来说两句吧...