📅  最后修改于: 2022-03-11 15:03:37.477000             🧑  作者: Mango
const obj1 = { a: 1, b: 2, c: 3 };
// this converts the object to string so there will be no reference from
// this first object
const s = JSON.stringify(obj1);
const obj2 = JSON.parse(s);