js 解决引用赋值修改新数组导致原数组跟着改变的问题 1 let arr = ['baidu', 'google', 'taobao']; 2 let newArr = JSON.parse(JSON.stringify(arr));