/* 验证手机号 */
        function isPhoneNo(phone) {
            var pattern = /^1[3456789]\d{9}$/;
            return pattern.test(phone);
        }

 

 

 

只验证了手机长度和手机首位必须是1开头,第二位必须是3,4,5,6,7,8,9    ,正确返回true  错误返回false

 

java验证手机号:https://www.cnblogs.com/pxblog/p/12869438.html

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-08-26
  • 2022-02-17
  • 2021-09-28
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案