var res = /^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/
let num = 13647223226
if (res.test(num)) {
console.log('正确')
}
8位座机或者11位手机号正则
猜你喜欢
转载自blog.csdn.net/weixin_69666355/article/details/132298785
今日推荐
周排行