标签:function name rtm 数据 pre 没有 each input []
var ipResolveValue =[]; //定义一个空数组
$("input[name=‘ipResolve‘]:checked").each(function(){
ipResolveValue.push($(this).val()); //js push增加数组值
});
var wwwIpResolveValue =[]; //定义一个空数组
$("input[name=‘wwwIpResolve‘]:checked").each(function(){
wwwIpResolveValue.push($(this).val()); //js push增加数组值
});
//alert(ipResolveValue.length==0 ?‘你还没有选择任何内容!‘:ipResolveValue);
//AlertMz.alertHappy(ipResolveValue+"CC"+wwwIpResolveValue)
标签:function name rtm 数据 pre 没有 each input []
原文地址:http://www.cnblogs.com/mazey/p/6645041.html