SOURCE

let a = {
    b:1,
    c:{
        d:2
    }
}

let bo = JSON.stringify(a,null,2);
console.log(bo,1)
let v = JSON.parse(bo)
console.log(v)
let com = JSON.parse(JSON.stringify(a,null,2));
let dot = a;
a.c.d = 3;
a.b =2 ;

console.log(v)
console.log(a,1)
console.log(dot,'dot')



console.log(com,9999)
console 命令行工具 X clear

                    
>
console