alert()
prompt()
Number() parseInt(a)[默认转十进制】 parseInt(a,b),b为进制能转 8,10,16 parseFloat()[保留一位小数】, toFixed(n)保留n位小数
String() toString(),范围小,不会将undefined、null转,会报错。 toSting()与toFixed(n) 调用形式:m.toString() m.toFixed(n); 用.调用
Boolean()
Math.pow(a,b) a的b次方
Math.sqrt(a) a的开二次方 81的开方为9
isNaN()
typeof判断类型:typeof 后面加不加括号都行:typeof a / typeof(a)