JS

1)JS保留精确度,并转为浮点型

var a = (31.291689186706544).toFixed(14);
alert(parseFloat(a));

原文地址:https://www.cnblogs.com/zplogo/p/10120833.html