$("ul.nav-list li a").each(function () {
//$("ul.nav-list li").removeClass("active");
if ($($(this))[0].href == String(window.location))
if ($(this).parent().find("li").length == 0) {
$(this).parent().addClass("active");
}
else {
$(this).parent().addClass("active open");
}
});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-04-05
猜你喜欢
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2022-01-23
相关资源
相似解决方案