会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小良下山化了个缘
博客园
首页
新随笔
联系
订阅
管理
2018年5月4日
js中undefinded、null、NaN的处理
摘要: 写了个 str ="s"++; 然后出现NaN,NaN是异常操作的结果; 1.判断undefined: var tmp = undefined; if (typeof(tmp) == "undefined"){ alert("undefined"); } 说明:typeof 返回的是字符串,有六种可
阅读全文
posted @ 2018-05-04 10:23 小良下山化了个缘
阅读(314)
评论(0)
推荐(0)
编辑