res(a, b, str) { //数字加英文 let re = `\^\\w{${a},${b}}\$` let reg = new RegExp(re); let status = !reg.test(str) return status }, res2(a, b, str) { //中英文字符 let re = `\^[\u4e00-\u9fa5_a-zA-Z]{${a},${b}}\$` let reg = new RegExp(re); let status = !reg.test(…