<td> 没有 value
所以要在<td>里面加上input 同时text 为hidden这样就不会显示value的值
var chk_value = []; function jqchk() { //jquery获取复选框值 $('input[name="id"]:checked').each(function() { var ip = $(this).attr('id'); var val = $(this).val(); //alert(val); var unit = $('#unit_'+ip).val(); var goodRefSuppliers = $('#goodRefSuppliers_'+ip).val(); //alert(goodRefSuppliers); val = val + "," + unit+"," +goodRefSuppliers; chk_value.push(val); }); if (chk_value.length == 0) { alert('没有选择任何数据。'); return false; } return true; } function ext(){ if(jqchk()){ var str = ""; for(var i=0;i" +"" + chk_value[i].split(",")[1] + "" +"" + chk_value[i].split(",")[2] + "" +"" + chk_value[i].split(",")[3] + "" +" "+ chk_value[i].split(",")[4] +"" +" " +" " +" " +" " +" " +" 删除"; }//for closePopup(); parent.refreshMain(str); //alert(str); parent.hideErrorMsg(); }//if }