We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{type:'regexp',required:true,message: '请输入正则表达式', trigger: 'blur'} 这样写没有验证效果。请问应该怎么使用?
The text was updated successfully, but these errors were encountered:
Must be an instance of RegExp or a string that does not generate an exception when creating a new RegExp
应该是缺少Pattern,试试这样:
{type:'regexp',required:true,message: '请输入正则表达式', trigger: 'blur', pattern: /\w+/g}
Sorry, something went wrong.
@jruif type要改成 string才有效果 {type:'string',required:true,message: '请输入正则表达式', trigger: 'blur', pattern: /\w+/g}
[{ pattern: /^\d+$/, required: true, message: 'pattern这个字段就够了' }]
望文生义了。。原来 regexp是验证输入的内容是否是正则表达式
No branches or pull requests
{type:'regexp',required:true,message: '请输入正则表达式', trigger: 'blur'}
这样写没有验证效果。请问应该怎么使用?
The text was updated successfully, but these errors were encountered: