Skip to content
New issue

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

isRequired已经判断过是否必填,其他的规则又会重复判断 #3

Open
z-ZYS-s opened this issue Dec 7, 2016 · 0 comments
Labels

Comments

@z-ZYS-s
Copy link
Member

z-ZYS-s commented Dec 7, 2016

比如一个规则集不需要必填:

rules: [{ type: 'isURL', ... }],

如果字符串为空,isURL会阻止通过流程。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant