null表示一个变量的值为空,undefined表示一个变量为声明
var a = document.getElementById('notExistNode');
console.log(a) // a = null
作为对象原型链的终点
var a = Object.getPrototypeOf(Object.prototype);
console.log(a) // a = null
null表示一个变量的值为空,undefined表示一个变量为声明
var a = document.getElementById('notExistNode');
console.log(a) // a = null
作为对象原型链的终点
var a = Object.getPrototypeOf(Object.prototype);
console.log(a) // a = null