PHP
·
发表于 5年以前
·
阅读量:7563
//校验规则: 非0开头的5位-13位整数
function isQQ(value) {
return /^[1-9][0-9]{4,12}$/.test(value.toString());
}