A deep copy means actually creating a new array and copying over the values, since whatever happens to it will never affect the origin one. JSON.parse and JSON. ... <看更多>
To copy an object in JavaScript, you have three options: ... A deep copying means that value of the new variable is disconnected from the original variable ... ... <看更多>
What you're doing there is copying the array, not its contents. I.e. it's a shallow copy. As mherzig mentions in a comment, what you end up ... ... <看更多>