正则 输入+

/^(-?[1-9]d{0,14}|0|-?[1-9]d{0,11}.d{2})((.d{1,2})?)$/.test(
value.toFixed(2)
)
原文地址:https://www.cnblogs.com/cylblogs/p/10184688.html