javascript null与undefined

  1. null是javascript关键字
  2. typeof null == "object"
  3. undefined是预定义全局变量,   ecmascript3中undefined是可读写变量,  ecmascript5修正了
  4. typeof undefined == "undefined"

 

 

posted @ 2013-11-07 19:12  我的百科全书  阅读(143)  评论(0编辑  收藏  举报