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);
        }
    });

  

posted @ 2018-02-10 17:44  盘思动  阅读(1012)  评论(0编辑  收藏  举报