- 链接地址:https://blog.csdn.net/wuj1935/article/details/107043047
- 链接标题:你知道 typeof null为什么是 object 吗?-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:5709
typeof 运算符对基本数据类型的运算:typeof 'str' // 'string'typeof NaN // 'number'typeof 1 // 'number'typeof true // 'boolean'typeof undefined // 'undefined'typeof Symbol() // 'symbol'typeof null // 'object'null作为一个基本数据类型为什么会被typeof运算符识别为object类型呢?这是因为javascrip_typeof null
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除
标签:typeof null