null和undefined
[if !supportLists]1.[endif]null表示一个‘空’的值。
。null和0以及空字符串‘’不同,0是一个数值,‘’表示长度为0的字符串
[if !supportLists]2.[endif]undefined表示未定义
[if !supportLists]3.[endif]事实上null和undefined区别不大,大多数情况使用null,undefined仅仅在判断函数参数是否传递情况下有用
null和undefined
[if !supportLists]1.[endif]null表示一个‘空’的值。
。null和0以及空字符串‘’不同,0是一个数值,‘’表示长度为0的字符串
[if !supportLists]2.[endif]undefined表示未定义
[if !supportLists]3.[endif]事实上null和undefined区别不大,大多数情况使用null,undefined仅仅在判断函数参数是否传递情况下有用