相似点 两者的布尔值都是false typeof:未定义的类型是undefined null的类型是object null == undefined 返回true 不同点 undefined:应该有值,但还未定义 null:不应该有值 undefined: 1.变量声明了,但未赋值 2.没有找到或定义 3.函数没有返回值时,默认返回undefined null:变量的值是空