JavaScript中Math对象方法使用概述 1 丢弃小数部分,保留整数部分parseInt(5 2) 2 向上取整,有小数就整数部分加1 Math ceil(5 2) 3,四舍五入 Math r JavaScript 2022-04-10 252 点赞 3 评论 381 浏览