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
时间: 2024-11-04 23:03:49