标签: javascript
如何在不改变原始数组arr的情况下保存arrayStore?
arr
function removeItem(arr){ const arrayStore = arr; let manipulateArray = arr; console.log(manipulateArray.pop()); console.log(arrayStore) } removeItem([1,2,3,4,5,6,8372])