Skip to content

Math.ceil()、Math.round()、Math.floor()三者的区别是什么? ​

参考答案: ​

  • Math.ceil()上取整
  • Math.round() 四舍五入
  • Math.floor()下取整