let array=[1,2,3,4,5,6];
let y=[123,34,45];
array.push(...y);
console.log(array);
JavaScript中数组一次写入多个数据
最新推荐文章于 2024-03-27 19:07:14 发布
let array=[1,2,3,4,5,6];
let y=[123,34,45];
array.push(...y);
console.log(array);