js手机校验正则表达式
var pattern = /^(13[0-9]|14[5-9]|15[0-3,5-9]|16[2,5,6,7]|17[0-8]|18[0-9]|19[0-3,5-9])\d{8}$/,
str = '13112345678';
console.log(pattern.test(str));
参考:
https://www.jianshu.com/p/5fbb85967bfd
https://www.w3cschool.cn/tools/index?name=create_reg
https://gitee.com/whoami333/ChinaMobilePhoneNumberRegex