禁止输入两个小数点——js 正则实现function inputNumber(e) { this._value = e.replace([^0-9.]g,"").replace((.)(d*)(1*)g,"$1$2"2023-04-14JavaScript280