首页 > 编程语言 > 详细

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

时间:2018-02-10 18:06:17      阅读:270      评论:0      收藏:0      [点我收藏+]
    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);
        }
    });

  

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!