类数组或可迭代对象转数组 2020-09-24 本文已影响0人 行走的蛋白质 [...'abc'] // ["a", "b", "c"] Array.from('abc') // ["a", "b", "c"] Array.prototype.slice.call('abc') // ["a", "b", "c"] Array.prototype.map.call('abc', x => x) // ["a", "b", "c"]