一个checkMobile方法的实现

来源:互联网 发布:edius视频软件 编辑:程序博客网 时间:2024/06/11 02:02

function checkMobile(mobile){

   if(isNull(mobile)){

         showDialog("请输入手机号码!");
//字符串为空
return;
   }

 

  if(isPhone(mobile)){//是否是手机号码


     doAction();//做具体的事务处理


  }else{

      showDialog(" 手机号码不正确!");

 }


  


}

0 0
原创粉丝点击