Search Docs
先进先出
const queue = []; queue.push(...[1, 2, 3]); while (queue.length > 0) { console.log(queue.shift()); }