更改li的class

$(".profile-nav>ul>li").eq(0).removeClass('active');

            $(".profile-nav>ul>li").eq(2).addClass('active');

https://q.cnblogs.com/q/78320/

猜你喜欢

转载自blog.csdn.net/qq_20426717/article/details/88757235