JavaScript常用方法 念不悔 2020-03-18 108 阅读1分钟 Math.max(...Numbars)取得参数中的最大值Math.min(...Numbars)取得参数中的最小值Math.max.apply()取得数组中的最大值Math.min.apply()取得数组中的最小值Math.ceil()天花板函数,向上取整Math.floor()地板函数,向下取整Math.round()标准四舍五入Math.random()返回介于0和1之间的伪随机数。