单项选择题

在JavaScript中要取最接近整数x并且比x小的数值,应该使用()。

A.Math.round()
B.Math.random()
C.Math.ceil()
D.Math.floor()

微信扫码免费搜题