JavaScript自带的拷贝都是浅拷贝,现在浏览器引入一个全局函数structuredClone(),用来深拷贝。
https://developer.mozilla.org/en-US/docs/Web/API/structuredClone