如题所述
//QQ号正则,5至12位
var qqPattern = /^[1-9][0-9]{4,11}$/;
//输出 true
console.log(qqPattern.test("65974040"));