function checkMobile(mobile) { var pattern = /^1[34578]\d{9}$/; return pattern.test(mobile); } 转载于:https://www.cnblogs.com/ydam/p/9209193.html