JavaScript Objects (and by extension: arrays, regexes, dates, non-primitive strings/numbers/booleans etc.) equality and assignment are reference based:
{a:'a'} == {a:'a'} // false
But:
var myObject = {a:'a'};
var myObject2 = myObject;
myObject == myObject2 // true
Furthermore:
myObject.b = 'b';
console.log(myObject2.b); // Logs: "b"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…