📜  admin lte 3 导航关闭菜单项单击 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:28.128000             🧑  作者: Mango

代码示例2
function activeFunc(){
            $("li").removeClass("active current-page");
              var currentSelectedli = $("a.router-link-exact-active").parent('li');
              currentSelectedli.addClass("current-page");
              currentSelectedli.siblings().removeClass("active current-page");
             var parentLI =currentSelectedli.parent("ul").parent("li");
             if(parentLI.length!=0){
                 parentLI.addClass("active");
             }
         }