摘要: 转换为数字类型 Number 字符串转数字类型 转换为字符串类型 String toString + '' 转布尔类型 五个falsy值: 0 NaN null undefined 在布尔上下文中认定可转为false的值 阅读全文
posted @ 2019-06-26 23:16 BUBU_Sourire 阅读(369) 评论(0) 推荐(0)
摘要: 与for循环不同 阅读全文
posted @ 2019-06-26 16:08 BUBU_Sourire 阅读(219) 评论(0) 推荐(0)
摘要: 7种数据类型 1.number 数字 2.string 字符串 3.boolean 布尔 4.symbol 符号 5.null (不存在) 6.undefined (不存在) 7.object 对象 *1-6为基本类型/简单类型 *7为复杂类型,其中包括三个细分类型: (1)狭义对象 object 阅读全文
posted @ 2019-06-26 15:54 BUBU_Sourire 阅读(144) 评论(0) 推荐(0)