Chrome displays different object contents on expand
问题 Why does Chrome display two differing datasets depending on if you have the object view expanded? In contracted view, my object has two properties: In expanded view, my object has three properties: 回答1: The object you see in the console is a snapshot of the object at a particular point in time - the time when you logged it. When you expand the object, it will evaluate the properties again. In the example below, I have created an object with two array properties. I logged it the console, and