code refactor

This commit is contained in:
MaysWind
2023-04-08 15:58:07 +08:00
parent c4b07b98aa
commit 8c33243c90
8 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -125,7 +125,7 @@ export default {
return str;
}
let integer = str.substr(0, dotPos);
let integer = str.substring(0, dotPos);
let decimals = str.substring(dotPos + 1, str.length);
let newDecimals = '';
@@ -232,7 +232,7 @@ export default {
return;
}
this.currentValue = this.currentValue.substr(0, this.currentValue.length - 1);
this.currentValue = this.currentValue.substring(0, this.currentValue.length - 1);
},
clear() {
this.currentValue = '';