码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2018-02-10 18:15:10      阅读:191      评论:0      收藏:0      [点我收藏+]

标签: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);
        }
    });

  

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

标签:sha   定义   type   function   body   push   his   int   post   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!