javascript 计算后 无聊的小数点处理

var x = (数值).toPrecision(12);

var z = parseFloat(x);

posted @ 2017-04-19 17:33  鞍山老菜鸟  阅读(136)  评论(0编辑  收藏  举报