首页 > 如何返回上一个jQuery 同胞?

如何返回上一个jQuery 同胞?

    var a = 0;

    $("input[type = 'radio']").click(function(){
        var q = ($($(this).parent()).parent()).next();
        var v = $($(this).parent()).parent();
        var th = $(this).parent();
        if(a<30){
            a = a + 1;
            (th).attr("style","background-color: rgba(125, 81, 27, 0.61);border: 1px solid #CC9233;");
            var t = setTimeout(function(){

                (q).removeAttr('style');
                (v).attr('style','display:none;');
            //alert("延迟了!");
            }, 50);
        }
    })

如何返回上一题,并清除选中的上一题样式?


没仔细看你的代码,示这看到用了 next(),那么你应该也知道 prev(),这不就是表示上一个?

【热门文章】
【热门文章】