aaaa007cn:temp0.value → "123456789123456789"(字符串)temp0.valueAsNumber → 123456789123456780(数值)发现了吗?value 还是正确的问题发生在从字符串转到数值的时候...回到原帖
taoww:很简单。数值是按IEEE-754里规定的binary64这种64位浮点数存储的。能连续精确表示的整数只到2^53=90071992547409922。超过这个上限后,都会按一定规则进行舍入。 反正用这个规范存储数值的软件都会有这个问题,你到...回到原帖
taoww:https://html.spec.whatwg.org/multipage/input.html#number-state-(type=number) “If the element is mutable, the user age...回到原帖