问题
I just noticed in the chrome console a little icon saying "Value below evaluated just now."
So I wanted to do a test to see if the console was in fact evaluating object when displayed or when expanded. So I did the following. and I didn't expand the object until I was finished and as you can see it shows 1999 not 2.
In many cases, I want to know the state of objects when I log them not after they are manipulated. How can you get the console to show the state of the object as it was when it was logged and not after it is expanded?
来源:https://stackoverflow.com/questions/44180966/getting-chrome-console-to-show-object-values-as-they-were