JavaScript怪癖和秘密之null是对象实例页面
代码:
HTML代码:
<button id="button">弹出 typeof(null)</button>
JS代码:
document.getElementById("button").onclick = function() {
alert(typeof(null));
};
<button id="button">弹出 typeof(null)</button>
document.getElementById("button").onclick = function() {
alert(typeof(null));
};