JavaScript
JavaScript typeof, null, 和 undefined
Undefined 和 Null 的区别
源代码:
点击运行 »
<p id="demo"></p> <script> document.getElementById("demo").innerHTML = typeof undefined + "<br>" + typeof null + "<br>" + (null === undefined) + "<br>" + (null == undefined); </script>
运行结果:
点击运行 »