https://jsfiddle.net/ky6h0tpf/
<input id="input" type="number" lang="en">
document.getElementById("input").value = 10.5;
LANG =&#34;恩&#34;适用于FF,但不适用于Chrome。
https://jsfiddle.net/ky6h0tpf/1/
<input id="input" type="number" lang="en">
document.getElementById("input").value = 10.5;