常用正则 2022-11-25 本文已影响0人 洪锦一 只能输入数字和小数点,最多两位小数 oninput="this.value = this.value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g,'$1')"