javascript:深度克隆复杂数据类型

1:最简单的这样两个数据就完全没有关系:

JSON.parse(JSON.stringify(data))

猜你喜欢

转载自www.cnblogs.com/llqwm/p/9144707.html