Tags
1 page
StructuredClone
深拷贝:结构化克隆与手写方案
浅拷贝只复制一层,嵌套对象是同一引用。深拷贝要递归复制。现代有 `structuredClone`,旧方案用 `JSON