Math.random() 返回的是一个左闭右开 [0,1) 的伪随机浮点数。 ... Math.ceil(2.44444) // 3 Math.ceil(2.99944) // 3 Math.ceil(2) // 2.
確定! 回上一頁