Replies: 1 comment
-
如果是antdv的话可以看下https://antdv.com/components/form#components-form-demo-validation https://github.com/yiminghe/async-validator
你可以参考下 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
有个检查命名的input
change时检测长度,字符是否合法
blur时调用接口是否重复
如果只用change,就会多次触发调用接口
如果只用blur,那么错误提示只用在失焦的时候触发展示
Beta Was this translation helpful? Give feedback.
All reactions