rules: [
{ required: true, message: "XXX不能为空", trigger: "blur" },
{ max: 6, message: "最大长度为6位字符", trigger: "blur" },
{
pattern: /^(?=(?:[^a-z]*[a-z]){2})[a-z0-9]{6,6}$/, //不连续的两位字母
// /^(?=.*[a-z]{2})[a-z0-9]{6}$/,//连续的两位字母
message: "支持6位小写字母和数字组合,必须包含2位字母",
trigger: ["blur"]
}
]