Math.max() // 取参数中的最大值 Math.min() // 取参数中的最小值 Math.abs() // 取绝对值 Math.round() // 四舍五入 Math.floor() // 向下取整 Math.ceil() // 向上取整 Math.trunc() // 去掉数字的小数部分,只保留整数部分,不管参数是正数还是负数 Math.random() // 返回一个浮点数(伪随机数在范围从 0(包括) 到小于1(不包括))