1.Math.PI :圆周率
2.Math.round(Math.random()*(上限-下限)+下限):求某个范围内的随机整数。
3.Math.max() , Max.min() :最大值与最小值
4.Math.round() 四舍五入 。
5.Math.abs() 求绝对值. 例:Math.abs(-1) ;// 1
6.Math.ceil() :小数进1。例:Math.ceil(3.1);//4
7.Math.floor():舍去小数 例:Math.floor(4.7);//4