您的位置: 首页 > IT文章 > JavaScipt中的Math.ceil() 、Math.floor() 、Math.round() 三个函数的理解 JavaScipt中的Math.ceil() 、Math.floor() 、Math.round() 三个函数的理解 分类: IT文章 • 2022-04-09 18:27:07 1. Math.ceil()用作向上取整。 2. Math.floor()用作向下取整。 3. Math.round() 我们数学中常用到的四舍五入取整。