像下取整
parseInt(); //但要注意 parseInt 第一个字符需要是数字 不然返回NaN;
Math.floor();
四舍五入
Math.round();
向上取整
Math.ceil();
posted on 2017-12-12 11:44 RonnieQin 阅读(209) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3