点击选中其中一项的效果

    $(".time>span").click(function(){
        console.log(this);
        $(this).css({'color':'#03FDFC'});  //选中的效果
        $(this).siblings().css({'color':'#FFF'});  //没选中的效果
    })

猜你喜欢

转载自www.cnblogs.com/aryu/p/10818363.html