日期:2014-05-16 浏览次数:20421 次
if (theForm.city.value == "--请选择--"){
alert(" 请选择 \"区域\" ,。");
theForm.city.focus();
return false;
}else if (~theForm.a1.value.indexOf("http")){
alert(" a1里面的字符必须包含http");
theForm.a1.focus();
return false;
}else if (/^0$
------解决方案--------------------
^[1-9]\d*$/.test(theForm.a2.value)){
alert("a2里面的必须为正整数或者0");
theForm.a2.focus();
return false;
}