liuting-1204

将数字转换为字符串

String(x)         // 将变量 x 转换为字符串并返回

x.toString()

 

将字符串转换为数字

Number("3.14")    // 返回 3.14

 

分类:

技术点:

相关文章: