JQuery - Add active class based on URL but also different following sub paths

前端 未结 0 365
臣服心动
臣服心动 2021-01-18 22:35

I\'m not too savvy with JS so any solution to this would be great!

I\'m currently adding an \'active\' class to the nav items based on \'current\' page as below:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题