JavaScript的类型转换有:1、转为字符串,使用“.toString”、String或是“num+""”;2、转为数值类型,使用Number、parseInt或parseFloat;3、转换为布尔值,使用Boole