将伪数组转成数组的常用方法

1.常用方法

Array.prototype.slice.call(伪数组);

2.es6方法

Array.from(伪数组);

你可能感兴趣的:(将伪数组转成数组的常用方法)