Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

减少 data-errormessage-{{rule}} 的数量 #79

Open
antife-yinyue opened this issue Jul 23, 2014 · 1 comment
Open

减少 data-errormessage-{{rule}} 的数量 #79

antife-yinyue opened this issue Jul 23, 2014 · 1 comment

Comments

@antife-yinyue
Copy link
Contributor

https://github.com/aralejs/validator/blob/master/src/item.js#L131

这行的取值,左右对换是不是更好呢?

@antife-yinyue
Copy link
Contributor Author

因为很多时候,除了 required,其他规则的文案是一样的,对换后可以把 data-errormessage 看做是默认文案

antife-yinyue added a commit to antife-yinyue/validator that referenced this issue Dec 1, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant