如果输入e开头的字符串则会出现如下bug
控制台如下:
00:08:19.151 error: java.lang.NumberFormatException: For input string: ""
00:08:19.151 at uni_modules/firstui-uvue/components/fui-input/fui-input.uvue:424:4
00:08:19.151 422| if (this.trim) value = this.trimStr(value);
00:08:19.151 423| this.val = value;
00:08:19.151 424| let currentVal = parseFloat(value)
00:08:19.151 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:08:19.151 425| // -9007199254740992 ~ 9007199254740992
00:08:19.152 426| if ((this.type == 'digit' || this.type == 'number') && !
如果输入e开头的字符串则会出现如下bug
控制台如下:
00:08:19.151 error: java.lang.NumberFormatException: For input string: ""
00:08:19.151 at uni_modules/firstui-uvue/components/fui-input/fui-input.uvue:424:4
00:08:19.151 422| if (this.trim) value = this.trimStr(value);
00:08:19.151 423| this.val = value;
00:08:19.151 424| let currentVal = parseFloat(value)
00:08:19.151 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:08:19.151 425| // -9007199254740992 ~ 9007199254740992
00:08:19.152 426| if ((this.type == 'digit' || this.type == 'number') && !