类数组转换为数组的方法

2018-07-13
阅读 2 分钟
12.9k
1、Array.prototype.slice.call() 这种方法是借用了数组原型中的slice方法,返回一个数组。slice方法的内部实现: