📅  最后修改于: 2022-03-11 14:56:28.128000             🧑  作者: Mango
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");
}
}