判断当前页面为哪个导航链接

if(window.loacation.href.indexOf(linkurl) != -1){

  link[i].className = 'active'

}

相关文章:

  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2021-07-06
  • 2021-08-04
  • 2021-10-25
  • 2022-12-23
猜你喜欢
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案