-
Notifications
You must be signed in to change notification settings - Fork 763
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
"123" 难道不是数字吗 #73
Comments
https://github.com/zzzgit/hakim |
这是个老问题了,我建议你加个transform。 |
@zzzgit v-model 默认获取是字符串 你用v-model.number来绑定 |
@godphp 要不得,實際應用中,表單驗證的實際應用中,一個表單項可能可以輸入數字,還可以輸入特定格式的某種字符串 |
@Deathsteps 为什么加入transform: value => +value ,还是没用啊? |
因為要不得 |
如卿这般需求,使自定义校验而非此类格式化校验了。 |
number ? |
字符串“123”就是一个数字,可是这个工具认为他不是数字
往往,我们就是需要判断一个字符串是不是合法的数字,但是这个工具直接判断他不是数字,太不科学
The text was updated successfully, but these errors were encountered: