这是一个四舍五入的方法

    1. console.log(Math.round(2.6))

    比如上述代码就是输出3