typedof value检测对象类型。 value instanceof Array检测a对象是否由b对象类型 Array.isArray(value)在两个框架中判断是否为数组类型。 转载于:https://www.cnblogs.com/anderson0/p/4825291.html