常用方法
Math.min() // 接收一组数据,找出最小值
Math.max() // 接收一组数据,找出最大值
Math.abs() // 返回绝对值
// 扩展,找出数组的最大值 Math.max.apply(Math, arr),这样也可以Math.max(...arr)
// 舍入方法
Math.ceil() // 向上舍入
Math.floor() // 向下舍入
Math.round() // 四舍五入
// 随机数
Math.random() // 返回0-1之间的随机小数
// 扩展 Math.floor(Math.random() * 10 + 1) 返回[1, 10]之间是数
// 还有其他方法,暂时用不到