JavaScript中ceil函数是返回大于等于其数字参数的最小整数。

  使用方法:

  Math.ceil(number)

  其中必选项number 参数是数值表达式。

  ceil函数返回值为大于等于其数字参数的最小整数。