<td class="bz"> 表的的值 </bz>js中 $('.bz').each(function(i,n){ var obj = $(n); var val = obj.text(); alert(val); if(val == '' || val == null || val == undefined){ alert(val); wglx += "null,"; }else{ wglx += obj.text() + ","; } });
if(val == '' || val == null || val == undefined)
这句判断没有效果
而且有值会alert 没值根本不执行 alert
没法判断了
相关分类