js验证手机号

方法1:

var ret = /^d{11}$/;
!ret.test(phone)

 方法2:

原文地址:https://www.cnblogs.com/phpfangzhan/p/11804081.html