let numValue = 12
var reg = /^(((\d|[1-9]\d)(\.\d{1,2})?)|100|100.0|100.00)$/;
if (!reg.test(numValue)) {
this.$message({
message: "YY费占比只能输入0~100,请注意格式",
type: "warning",
});
return;
}
let numValue = 12
var reg = /^(((\d|[1-9]\d)(\.\d{1,2})?)|100|100.0|100.00)$/;
if (!reg.test(numValue)) {
this.$message({
message: "YY费占比只能输入0~100,请注意格式",
type: "warning",
});
return;
}