javascript中怎样输出Math.ceil或Math.floor或Math.round的值?

2025-05-14 06:54:38
推荐回答(1个)
回答(1):

输出??

alert(Math.ceil(2.4));//3  
 alert(Math.floor(2.4));//2
 alert(Math.round(2.5));//3