parseInt(3.1543); //3 (丟棄小數(shù)部分)
Math.floor(3.1543); // 3 (向下取整)
Math.ceil(3.1543); // 4 (向上取整)
Math.round(3.1543); // 3 (四舍五入)
Math.round(3.5543); // 4 (四舍五入)
Math.abs(-3); // 3 (取絕對值)
Math.abs(3); // 3 (取絕對值)
Math.max(1,5); // 5 (返回兩者比較的最大數(shù))
Math.min(1,5); // 1 (返回兩者比較的最小數(shù))
Math.random(); // (0-1隨機數(shù))