Math.floor() / Math.ceil() 總是返回數值的整數部分function ToInteger(x){ x = Number(x) x < 0 ? Math.ceil(x) : Math.floor(x) } ToInteger(3.2) ...
確定! 回上一頁