Math.pow(2,53) //2的53次冪
Math.round(1.6) //四捨五入
Math.ceil(0.6) //向上求整
Math.floor(0.6) //向下求整
Math.abs(-5) //求絕對值
Math.max(x,y,z) //返回最大值
Math.min(x,y,z) //返回最小值
Math.random() //生成一個大於0小於1的僞隨機數
Math.PI //圓周率
Math.E //自然對數的底數
Math.sqrt(3) //3的平方根
Math.pow(3,1/3) //3的立方根
Math.sin(0) //三角函數 還有Math.cos,Math.atan等
Math.log()10 //10的自然對數
Math.log(100)/Math.LN10 //以10爲底100的對數
Math.log(512)/Math.LN2 //以2爲底512的對數
Math.exp(3) //e的三次冪
js isNaN()函數來判定是否爲NaN,isFinite()只有參數不是NaN,Infinity或者-Infinity的時候返回true。