摘要: 7. 数据的类型转换 两种转换方法:隐式转换和强制转换 7.1 转换为string字符串 隐式转换:数据+ ”” 转换特点:所有类型的数据都能通过这种方法转换为字符串。 强制转换: 1 String(数据) 转换特点:同隐式转换。 2 数据.toString() 转换特点:null,undefine 阅读全文
posted @ 2016-07-28 22:03 5毛钱小辣条 阅读(182) 评论(0) 推荐(0) 编辑