看到三种方法: 1、 var isArray = function(a){ return a && typeof a === 'object' && typeof a.length === 'number' && typeof a.splice === 'function' && !(a.propertyIsEnumerable('length')); } 2、 var isArray = function(v){ return Object.prototype.toString.apply(v) === '[object Array]'; } 3、 var isArray = function(object) { return object != null && typeof object === "object" && 'splice' in object && 'join' in object; }