JS 正则匹配整数和小数
正则匹配正整数和小数
1 | let _check = /^([1-9][\d]{0,6}|0)(\.[\d]{1,2})?$/; //限制小数点前后位数 |
![cardcode](https://qny.aqingya.cn/img/QQ截图20220721163459-removebg-preview.png)
Invitation
aqing
962555446
created:15/04/2021
Welcome to Candyhome
Use this card to join the candyhome and participate in a pleasant discussion together .
Welcome to aqing's candyhome,wish you a nice day .
评论