jquery常用 短代码 独立 片段 | 标签切换

 

$('ul li').click(function(){
    $(this).addClass('active').siblings().removeClass('active');
})

 

posted @ 2019-08-29 09:34  WilliamShaw  阅读(156)  评论(0编辑  收藏  举报