会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hcl17858943435
博客园
首页
新随笔
联系
订阅
管理
2018年6月28日
javascript中的数据类型转换
摘要: 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)
公告