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

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

var z = parseFloat(x);

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