// 限制只保留小数点后一位数字
this.withdrawMoney.match(/^\d*(\.?\d{0,1})/g)[0];
// 限制只能输入一位小数点
this.withdrawMoney.match(/^\-?\d+\.?\d*$/);
限制只能输入正整数
this.AudioPrice.toString().match(/^\d*(\.?\d{0,0})/g)[0];
// 限制只保留小数点后一位数字
this.withdrawMoney.match(/^\d*(\.?\d{0,1})/g)[0];
// 限制只能输入一位小数点
this.withdrawMoney.match(/^\-?\d+\.?\d*$/);
限制只能输入正整数
this.AudioPrice.toString().match(/^\d*(\.?\d{0,0})/g)[0];