版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_27922023/article/details/81084850
JavaScript数据类型的分类和判断
基本(值)类型
* Number —– 任意数值 ——– typeof
* String —– 任意字符串 —— typeof
* Boolean —- true/false —– typeof
* undefined — undefined —– typeof/===
* null ——– null ———- ===
对象(引用)类型
* Object —– typeof/instanceof
* Array —— instanceof
* Function —- typeof