会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
HumorChen99
我的CSDN博客地址:https://blog.csdn.net/HumorChen99
博客园
首页
新随笔
联系
订阅
管理
2020年9月19日
js优雅判断undefined、null、空字符串、0小技巧,直接用if(obj)
摘要: undefined、null、空字符串、0在js中全部为假 let obj=undefined if(obj) { ... }
阅读全文
posted @ 2020-09-19 09:48 HumorChen99
阅读(0)
评论(0)
推荐(0)
编辑
公告