标签: javascript google-chrome console google-chrome-devtools
在我的谷歌Chrome控制台中,当我console.log(MyObject)时,我得到了这个输出:
console.log(MyObject)
MyObject {name: null, place: null} name: "Don" place: "United States"
应如何解释? console.log(MyObject.name)返回null,但控制台也说它已设置。
console.log(MyObject.name)