jq 数组定义,拼接~~~push应用

    var radio_checked_array = [];
    $("input[type='radio']").each(function(){
        if($(this).attr('checked') == 'checked'){
            var _each_this_val = parseInt($(this).val());
            console.log(_each_this_val);
            radio_checked_array.push(_each_this_val);
        }
    });

  

原文地址:https://www.cnblogs.com/pansidong/p/8439284.html