正则匹配是否是手机号

function isTel(n){
var re=/^[1][3-8]([0-9]{9})$/;
console.log(re.test(n.trim()))
}

原文地址:https://www.cnblogs.com/week-1/p/6557755.html