关于js中的undefined和typeof-CSDN博客网友收藏

关于js中的undefinedtypeof-CSDN博客

w3c上写着。js中的undefined是指声明了变量,却未对其初始化时赋予该变量的值。 也就是说undefined类型的变量只有一个值,即undefined,我们声明了一个变量,var a;但是没有给他初始化,那么js会自动给他赋值undefined(undifined并不......
阅读全文