oninput ="value=value.replace(/[^\d]/g,'')" //只能输入数字 oninput ="value=value.replace(/[^0-9.]/g,'')" //只能输入数字和小数