正则文本框只能输入数字,最多保留两位小数

672 阅读1分钟

let reg = /^(([1-9]{1}\d*)|(0{1}))(.\d{1,2})?$/;