点击运行
JavaScript Math.round()
Math.round(x) 返回 x 四舍五入到最接近的整数的值:
运行结果