JS

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

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

posted on 2018-12-14 18:06  ${}  阅读(281)  评论(0编辑  收藏  举报

导航