验证规则:11位数字,以1开头。 function checkMobile(str) { var re = /^1\d{10}$/ if (re.test(str)) { alert("正确"); } else { alert("错误"); }}checkMobile('13800138000'); //调用checkMobile('139888888889');//错误示例