返回false就可以跳出循环
如:
$("input[type='text']").each(function(index){ if(!checkData($(this),types[index])){ passCheck=false; return false; } ............ });
返回false就可以跳出循环
如:
$("input[type='text']").each(function(index){ if(!checkData($(this),types[index])){ passCheck=false; return false; } ............ });