Home > front end >  Phenomenon are playing out of the vue array (subject to the younger brother to see less)
Phenomenon are playing out of the vue array (subject to the younger brother to see less)

Time:10-05



Give a beautiful beautiful little brother little sister, have seen such a phenomenon? I ask this is how, how to solve? I thank you very much

CodePudding user response:

This is, after you print array contents changed again

CodePudding user response:

You should be in the console. The log () after the output array, and modify the array,

In the console. The log () output array or object, the object (array) attribute is fold does not display,
If you are in the console. The log () output after change the attributes of the object (array), when you click the triangle on attributes will reread object (array) current attributes, namely is displayed when you click the triangle on the attributes, rather than performing the console. The log () when the properties of the

The solution is to use the console. The log (JSON. Stringify (arr)); To the output string way

CodePudding user response:

Reference types; The console at the time of printing and a time to value the time, there is change the value of a reference type would be different

CodePudding user response:

Thank you bosses
  • Related