易用性优化

master
hanbo 2022-04-20 15:24:36 +08:00
parent 1eb0caf04c
commit 77f4c3bdd5
1 changed files with 1 additions and 1 deletions

View File

@ -648,7 +648,7 @@
function changeToNumber(value) {
value = value.replace(/[^\-\d.]/g, ""); //清除“-”、“数字”和“.”以外的字符
value = value.replace(/\.{2,}/g, "."); //只保留第一个. 清除多余的
return value;
Number(value);
}
</script>
</@defaultLayout.layout>