from() 方法 from() 方法用于通过拥有 length 属性的对象或可迭代的对象来返回一个数组。 如果对象是数组返回 true,否则返回 false。 例子1: const arr = [1,781,75,12,2,2,3,5,4,4,6,48,7,8] console.log(Array<