会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Miya
博客园
首页
新随笔
联系
订阅
管理
2017年4月18日
判断 undefined and ( == null) and (!something) and ( == null)
摘要: 1、判断 undefined 2、判断 (!something) 如果判断条件为 undefined,或数字零,或 false,也会得到与 null 相同的结果,虽然 null 和二者不一样。 注意:要同时判断 null、undefined、数字零、false 时可使用本法。 false undef
阅读全文
posted @ 2017-04-18 14:51 MiyaMiya
阅读(221)
评论(0)
推荐(0)
公告