1. Math.ceil() 向上取整
    2. Math.floor() 向下取整
    3. Math.round() 四舍五入
    4. Math.random() 随机数 0<=num<1
    5. Math.max() 最大值
    6. Math.min 最小值
    1. var num = 12.26;
    2. console.log(Math.ceil(num)); //13
    3. console.log(Math.floor(num)); //12
    4. console.log(Math.round(num)); //12
    5. console.log(Math.random(num)); //随机数