- If we see
[0-9]we reset the number flags. - We can only see
.if we didn't seeeor.. E后面不能有小数点 - We can only see
eif we didn't seeebut we did see a number. We reset numberAfterE flag. - We can only see
+and-in the beginning and after ane - any other character break the validation.
2015年5月17日星期日
Number Validation
We start with trimming.
订阅:
评论 (Atom)