Answer the question
In order to leave comments, you need to log in
Why does chrome output paradoxical data in the console?
I somehow output json to the console, I think I’ll look where the name parameter disappeared, but it seems to be here, and besides, it’s not there .... WHATOOOO!?
actually, when the json is opened, the name parameter is null, but when it is hidden, it is. Or I don’t understand something in this world, or maybe someone had the same problem, and maybe figured out why the data can be output like this?
Answer the question
In order to leave comments, you need to log in
This means that your object is mutated after you have displayed it for the first time, but before you have expanded it in the console. When you expand an object in the console, you get it again by reference, and it may already be different from what you output to the console before. Look in the code for the place where you change the "name" property.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question