js Math 对象的方法 1 丢弃小数部分,保留整数部分 parseInt(5 2) 2 向上取整,有小数就整数部分加1 Math ceil(5 2) 3,四舍五入 JavaScript 2022-04-02 95 点赞 1 评论 143 浏览