Math.round(3.6) //四舍五入
Math.random() //返回0-1之间的随机数
Math.max(num1, num2) //返回较大的数
Math.min(num1, num2) //返回较小的数
Math.abs(num) //绝对值
Math.ceil(19.3) //向上取整
Math.floor(11.8) //向下取整 (跟parseInt()作用一样)
Math.pow(x,y) //x的y次方
Math.sqrt(num) //开平方
总结:后面遇到Math方法还会继续补充,上面主要是常用