数据类型转换常用的方法

1.转换为数值类型:Number(mix)、parseInt(string,radix)、parseFloat(string)

2.转换为字符串类型:toString(radix)、String(mix)

3.转换为布尔类型:Boolean(mix)

原文地址:https://www.cnblogs.com/max-hou/p/8920224.html