bootstrap页面sidebar

function change_active(select_item){
    $('.mail-navigation').find('li').each(function(){
        $(this).removeClass("active");
    })
    select_item.parent().addClass("active");
}

传入的为 a标签中触发点击的点击事件的 $(this)

posted @ 2018-09-06 21:23  huim  阅读(1760)  评论(0编辑  收藏  举报