摘要: var a="15.23456789"; var b=a.toFixed(2);/*保留两位小数*/ alert(b); /*返回结果:15.23*/ 阅读全文
posted @ 2018-02-08 10:35 柒小乐 阅读(2953) 评论(0) 推荐(0) 编辑