將天天看到的優秀的代碼或者特別的實現,記錄下來code
2019-2-18class
var a = {n: 1}; var b = a; a.x = a = {n: 2};
undefined,{n: 2}
a.x=b
{n:1,x:{n:2,x:{n:1,.....}} // 一直循環下去