JavaScript-Tips icon indicating copy to clipboard operation
JavaScript-Tips copied to clipboard

对《null和undefined的区别》的补充

Open hexuanzhang opened this issue 9 years ago • 2 comments

1.null是js的保留关键字,undefined是window对象的内置属性 2.null在参与数值运算时转换为0,undefined参与数值运算时为NaN

hexuanzhang avatar Mar 01 '16 13:03 hexuanzhang

@hexuanzhang 多谢

sunyuhui avatar Mar 03 '16 15:03 sunyuhui

undefined与null的区别 偶然看到的(^_^) http://www.ruanyifeng.com/blog/2014/03/undefined-vs-null.html

wagnlinzh avatar Mar 08 '16 05:03 wagnlinzh