常见的金额验证 var reg = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; 转载于:https://www.cnblogs.com/xuyuanlong/p/8078764.html