Math.floor(0.60); 结果:0 向下取整
Math.ceil(0.60); 结果:1 向上取整
Math.round(0.60); 结果:1 四舍五入
Math.round(0.40); 0
parseInt("1234blue"); 结果 1234
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号