这是我的代码
var myObj = {};
var newObj={a:'a',b:'b'};
myObj=newObj;
console.log(myObj);
console.log(myObj['c']); //undefined
myObj['c']='c';
console.log(newObj);
console.log(newObj['c']); //c
谷歌浏览器结果
我是php程序员遇见这样的情况,请大神指点