Math.abs(數值) 把()內的值變爲正數dom
Math.ceil(4.3) 向上取整 // 5spa
Math.floor(4.3) 向下取整 // 4對象
Math.round(4.3) 四捨五入取整 // 4隨機數
Math.random() 隨機數0~1 數字
Math.valueOf() Math對象 裏面包含勾股數 正選餘弦等ab
5.32145.toFixed(num) 把 小數 四捨五入爲指定num位的數字。num不填獲得整數,多填加零處理
Math.PI/5 表明36deg Math.PI表明180deg