常用正则

2022-11-25  本文已影响0人  洪锦一

只能输入数字和小数点,最多两位小数
oninput="this.value = this.value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g,'$1')"

上一篇 下一篇

猜你喜欢

热点阅读