摘要: const num = 18.186; let result; result = num.toFixed(2) console.log(result) // 18.19 注意,返回值为String类型 阅读全文
posted @ 2020-04-28 15:59 莫欺少年穷呐 阅读(357) 评论(0) 推荐(0)