Math.abs() 絕對值. 絕對值(正值)取參數的絕對值。參數可以是數值亦可以是一個「數值」的字串。 Math.round(3.14) // 3. Math.abs("-12") // 12 Math.abs("-0012") ...
確定! 回上一頁