会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
王先森W
博客园
首页
新随笔
联系
订阅
管理
2019年8月17日
JS之null与undefined的区别
摘要: 1.null表示没有值,定义为空值 这段代码中“notExistElement”不存在,或者定义为null值 2.undefined表示缺少值,即此处应该有值,但是还没有定义 var oValue; alert(oValue == undefined); //output "true" 3.类型不一
阅读全文
posted @ 2019-08-17 18:20 王先森W
阅读(210)
评论(0)
推荐(0)
编辑
公告