美文网首页
Javascript 中 null、NaN和undefined的

Javascript 中 null、NaN和undefined的

作者: 扶得一人醉如苏沐晨 | 来源:发表于2021-12-29 09:43 被阅读0次

1.类型分析:


js中的数据类型有undefined,boolean,number,string,object等5种,前4种为原始类型,第5种为引用类型。

未定义的值和定义未赋值的为undefined,null是一种特殊的object,NaN是一种特殊的number。

“”chil

相关文章

网友评论

      本文标题:Javascript 中 null、NaN和undefined的

      本文链接:https://www.haomeiwen.com/subject/bwmsqrtx.html