实现点击a标签后,页面跳转,被点击的字颜色高亮

$(document).ready(function() {
    $('.zhongxin_left ul li a').each(function() {
        if ($($(this))[0].href == String(window.location)) {
            $('.zhongxin_left ul li').removeClass("blue");
            $(this).parent().addClass('blue');
        };
    });
});

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-07-01
  • 2021-10-19
  • 2021-09-07
  • 2021-06-30
  • 2022-12-23
猜你喜欢
  • 2022-02-09
  • 2022-02-09
  • 2021-12-10
  • 2021-11-17
  • 2022-02-17
  • 2021-09-14
  • 2022-12-23
相关资源
相似解决方案