正则验证

1、只能输入数字并且只能保存两位小数点、

var reg=/^d{0,8}.{0,1}(d{1,2})?$/;

2、

原文地址:https://www.cnblogs.com/lanliying/p/6726785.html