摘要: 我使用 const conditions = [ ...item.value.conditions ]; 拷贝出一个新数组,但是当我修改新数组的元素,原数组也发生了变化,因此我判定扩展运算符为浅拷贝。 修改为深拷贝的方法为: const conditions = JSON.parse(JSON.st 阅读全文
posted @ 2025-04-06 15:55 罗毅豪 阅读(30) 评论(0) 推荐(0)