1、通过Array.prototype
var fakeArr = { 0: 'abc', 1: 'fsafd', 2: 'gfs', length: 3 } var realArr = Array.prototype.slice.call(fakeArr)
2、通过slice
var fakeArr = { 0: 'abc', 1: 'fsafd', 2: 'gfs', length: 3 } var realArr = [].slice.call(fakeArr)
3、通过from
var fakeArr = { 0: 'abc', 1: 'fsafd', 2: 'gfs', length: 3 } var realArr = Array.from(fakeArr)