Math.round(11.5)==12 Math.round(-11.5)==-11
round方法返回与参数最接近的长整数,参数加1/2后求其floor.
提 问题
写 面经
写 文章
微信 公众号
回到 顶部
没有帐户? 立即注册
已有帐号?立即登录