会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
每天都要进步一点点
善始者实繁,克终者盖寡。 技术栈:angular + ionic + vue + mint-ui + react-native + teaset + h5plus + mui + nodejs + webpack + gulp + ES6 + vux + typescript2 + weex + weex-ui + 微信小程序 + react + ant-design + ant-design-mobile + material-ui + nervjs + taro + taro-ui + spring boot
博客园
首页
新随笔
联系
订阅
管理
2021年5月11日
null 和 undefined 的区别
摘要: null表示"没有对象",即该处不应该有值。典型用法是:(1) 作为函数的参数,表示该函数的参数不是对象。(2) 作为对象原型链的终点。 undefined表示"缺少值",就是此处应该有一个值,但是还没有定义。典型用法是:(1)变量被声明了,但没有赋值时,就等于undefined。(2) 调用函数时
阅读全文
posted @ 2021-05-11 09:30 每天都要进步一点点
阅读(400)
评论(0)
推荐(0)
公告