将伪数组转换为数组的方法

1、Array.from() 方法

2、sArr.slice() 当参数为空时将把整个数组(或者伪数组)中的内容作为一个新数组返回。

posted @ 2019-04-28 17:31  梅思德尔车  阅读(1075)  评论(0编辑  收藏  举报