Open LiuL0703 opened 6 years ago
null表示"没有对象",即该处不应该有值 简单的用法如:
undefined表示"缺少值",就是此处应该有一个值,但是还没有定义
其他
null === undefined // false null == undefined // true null === null // true null = 'value' // ReferenceError undefined = 'value' // 'value'
null表示"没有对象",即该处不应该有值 简单的用法如:
undefined表示"缺少值",就是此处应该有一个值,但是还没有定义
其他