验证是否为数字 或带有小数点的数字
let _reg = /^\d+(\.\d+)?$/;
if( this.mynumber < 0 || this.mynumber > 100 || !_reg.test(this.mynumber)) {
this.showInputWrong = true;
return
}
验证是否为数字 或带有小数点的数字
let _reg = /^\d+(\.\d+)?$/;
if( this.mynumber < 0 || this.mynumber > 100 || !_reg.test(this.mynumber)) {
this.showInputWrong = true;
return
}