摘要: 直接上代码了 对于只有一层的数据可用有效 const bse = { a: 0 } const arr1 = { ...bse } arr1.a = 1 const arr2 = { ...bse } arr2.a = 2 console.log( arr1,arr2) // {a: 1} cons 阅读全文
posted @ 2022-10-20 16:33 树叶铃铛 阅读(25) 评论(0) 推荐(0) 编辑