在文本类型的html输入字段中防止科​​学计数法

时间:2019-01-05 22:35:04

标签: javascript html scientific-notation input-field

分配值1000000000000000000000似乎会将字段值更改为1e + 21,但我想将其保留为字符串,即1000000000000000000000

<input id="high" type="text" value="1000000000000000000000">

这是我在浏览器中看到的输出的屏幕截图: Screenshot showing the 1e21 output

当我使用jsfiddle尝试此操作时,文本保持完整,没有更改为科学计数法。 https://jsfiddle.net/4q1dt503/

还有什么可能导致我的页面上出现这种情况?

0 个答案:

没有答案