如何深拷贝索引类型数据 2018-09-19 本文已影响0人 e40c4f11ad8a 重点掌握 先将对象转换成JSON字符串 再换成JSON对象 let text = JSON.parse(JSON.stringify(arr));