element form 正则校验规则

 [{ required: true, message: '请输入', trigger: 'blur', pattern: /^((0\d{2,3}-\d{7,8})|(1[34578]\d{9}))$/}]

你可能感兴趣的:(element form 正则校验规则)