new Array([ item0[, item1 [,…]]]) The [[Class]] property of the newly constructed object is set to “Array”. 于是乎,可以改寫之前的isArray函數(shù)以利用這個特性,如下: Js代碼 復(fù)制代碼代碼如下: function isArray(o) { return Object.prototype.toString.call(o) === '[object Array]'; ...