把一个数组 赋值给一个新数组

let newArr = JSON.parse(JSON.stringify(arr))

  

原文地址:https://www.cnblogs.com/wang-xx/p/13099744.html