javascript null与undefined

  1. null是javascript关键字
  2. typeof null == "object"
  3. undefined是预定义全局变量,   ecmascript3中undefined是可读写变量,  ecmascript5修正了
  4. typeof undefined == "undefined"
原文地址:https://www.cnblogs.com/qiudeqing/p/3413071.html