function checkAll(){ var result = true; var e = document.getElementsByTagName("input"); if (objCheck("question_0") != undefined ) { var question_0 = objCheck("question_0").selected; var question_99 = objCheck("question_99").selected; } for(var i=0;i<e.length;i++){ if (e[i].id != 'pwuser' && e[i].id != 'customquest_l' && e[i].id != 'keyword') { if (question_0 == true && (e[i].id == 'customquested' || e[i].id == 'answered')) { continue; } else if (question_99 == false && question_0 == false && e[i].id == 'customquested') { continue; } if(e[i].type == 'text' || e[i].type == 'password' || e[i].type == 'checkbox'){ try{ eval(e[i].id); } catch(e) { continue; } if(e[i].id && Element.prototype.isPrototypeOf(eval(e[i].id))){ var tmpresult = analyseData(e[i],true); if(typeof(tmpresult) != 'undefined'){ result &= tmpresult; } //2014-11-14 添加base64编码 密码字段 var objId = e[i].id; if(objId == 'regpwd' || objId == 'regpwdrepeat'){ jQuery(function(){ var obj =e[i]; var encodeObj = jQuery.base64('encode', obj.value); if(getInfoBox(obj)){ jQuery("#"+objId).val(encodeObj); } }); } //2014-11-14 添加base64编码 end } } } } for(var i=0;i<extracheck.length;i++){ var tmpresult = analyseData(extracheck[i],true); if(typeof(tmpresult) != 'undefined'){ result &= tmpresult; } } return (result == "0"?false:true); }
第一个for循环执行完后就不执行下面代码了,求解?谢谢大家的回答。
哔哔one
鸿蒙传说
斯蒂芬大帝
眼眸繁星
Qyouu
慕的地8271018
慕桂英3389331
相关分类