async-validator
async-validator copied to clipboard
type:"float",值12.00时会校验失败,12.01校验通过
https://github.com/yiminghe/async-validator/blob/master/src/rule/type.js#L20
I'm curious as to why the float validator requires the number to not be an integer.
你好,开发者。type:float 校验时,input的输入数字typeof "1.233" true。这个时候float不通过。