1.取整的方法

Math.floor( ) Math

对象的方法--取比当前数值小的最大整数(下取整)。

 Math.ceil( ) Math对象的方法--取比当前数值大的最小整数(上取整)。

 Math.round( ) Math对象的方法--四舍五入。

toFixed( ) Number对象的方法--四舍五入保留n位小数。

 parseInt( ) 转换为整数

 2.时间方法