Add classes to ancestors in a nav menu?

前端 未结 0 1032
渐次进展
渐次进展 2021-01-12 15:11

I\'ve got a pretty large navigational menu. I want to loop through the menu and add a class="active" to the current menu and any ancestors, if applicable, with pur

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