Commit b0abcdaf authored by xinyuandu's avatar xinyuandu

commite

parent f174124c
...@@ -15,7 +15,11 @@ ...@@ -15,7 +15,11 @@
$.alert("请输入正确的电话号码") ; $.alert("请输入正确的电话号码") ;
return false; return false;
} }
if (number.length > 11 ){ if (number.length != 11 ){
$.alert("请输入正确的11位电话号码") ;
return false;
}
if (number[0] != 1 ){
$.alert("请输入正确的电话号码") ; $.alert("请输入正确的电话号码") ;
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment