//向下取整
Math.floor(5.20) //5
//向上取整
Math.ceil(5.20) //6
//去掉小数部分
parseInt(5.20) //5
//四舍五入
Math.round(5.20) //5
Math.round(5.66) //6
//绝对值
Math.abs(-1) //1
//返回两数之间较大者
Math.max(2,5) //5
//返回两数之间较小者
Math.min(2,5); //2
//随机生成数
Math.random();