Array.from() 能將類數(shù)組(arguments,NodeList),可迭代對象(Set,Map)恤左,字符串(String)轉換成數(shù)組
Array.from(arrayLike, mapFn, thisArg) --> Array.from(arrayLike).map(fn(), thisArg)
Array.prototype.slice.call() 能將類數(shù)組(arguments,NodeList)抬伺,字符串(String)轉換成數(shù)組
Array.prototype.slice.call(arrayLike, index) 從第index個開始轉換成數(shù)組