Files
freeCodeCamp/guide/chinese/javascript/standard-objects/array/array-from/index.md
T

471 B
Raw Blame History

title, localeTitle
title localeTitle
Array from 数组来自

数组来自

'Array.from()'方法从类似数组或可迭代的对象创建一个新的Array实例。

句法:

“”” Array.from(arrayLike [,mapFn [,thisArg]]) “””

例:

“”” Array.from( '富'); // [“f”,“o”,“o”] “””

更多信息:

MDN文档