null和undefined null表示"无",即对象本身都不存在,转为数值时为0 undefined表示值为空。转为数值时为NaN null: 作为函数的参数,表示该函数的参数不是对象 作为对象原型链的终点 undefined: 变量被声明了,但没有赋值时,就等于undefined