js中整数的转换方法

JS楼:回十进制整数math.floor(12.9999):math.ceil = 12天。(12.1)= 13;轮:Math.round四至五家(12.5)= 13 math.round(12.4)= 12