lz看看这样符合题意不。 Array.prototype.getReader = function () { let arr = this; let index = 0; return { read (num = 1) { if (index > arr.length - 1) { return []; } const part = arr.slice(index, index + num); index += num; return part; } } }