摘要: 1、把其他的数据类型转换为number类型 Number()->严格 parseFloat/parseInt ->非严格 1)把布尔类型转换为数字的话 true->1 false->0 2)把null/undefined转换为数字 null->0 undefined->NaN 10+null=10 阅读全文
posted @ 2018-06-28 11:44 hcl17858943435 阅读(79) 评论(0) 推荐(0)