2021-05-29 复杂数据类型深拷贝 2021-05-29 本文已影响0人 半眼鱼 export function deepCopy(obj) { //深拷贝 return JSON.parse(JSON.stringify(obj)) }