检测基本数据类型 typeof 能检测 string 、 number 、 boolean 、 undefined 和 function。 数组的数据类型检测 第一种检测方式 第二种检测方式 第三种检测方式 转载于:https://www.cnblogs.com/wukaiBK/p/11177975.html