Skip to content
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

小数点后几位 通常 0000是不合法的 #3

Closed
cuilanxin opened this issue Nov 25, 2021 · 4 comments
Closed

小数点后几位 通常 0000是不合法的 #3

cuilanxin opened this issue Nov 25, 2021 · 4 comments

Comments

@cuilanxin
Copy link
Contributor

WX20211125-160244@2x

我尝试这样写 /^(0|[1-9]\d*)(\.\d{n,m})?$/ 是可行的
@jaywcjlove
Copy link
Owner

@cuilanxin 你要表示 00.1, 0. 不合法?

@jaywcjlove
Copy link
Owner

image

@jaywcjlove
Copy link
Owner

#4

@jaywcjlove
Copy link
Owner

image

在JS中合法的 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants