The usual methods of copying an object or array only make a shallow copy, ... You need a deep copy if a JavaScript object contains other objects.
確定! 回上一頁