js验证手机号

方法1:

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

 方法2:

posted @ 2019-11-06 11:28  小崔开发  阅读(146)  评论(0编辑  收藏  举报