查看对象是否为数组 (包含字符串 "Array"): function isArray(myArray) { return myArray.constructor.toString().indexOf("Array") > -1;}