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); } });
标签:sha 定义 type function body push his int post
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); } });
标签:sha 定义 type function body push his int post
原文地址:https://www.cnblogs.com/pansidong/p/8439284.html