导航栏的menu比如有blog, user等,链接分别对应/blog, /user等,主页home上有个class="active",
问题是怎么实现在点击blog, user导航后,blog上有“active”属性。
各个页面是extends base.html的,所以希望写一个js放在base.html里
谢谢
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
ringa_lee