Getting chrome console to show object values as they were

老子叫甜甜 提交于 2019-12-13 00:33:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!