您的位置:首页 > 其它

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

2018-02-10 17:44 176 查看
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);
}
});

  

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐