JS Array object assignment problem

In online programming through the W3C's test found the following problems:

When an internal element of the object array, the array assigned to the assignment should give the object, and then push the object into an array.

As follows:

After the print format data console is shown below:

If the assignment directly to the subject at the time of assignment will be given to the array, as follows:

These are the test results of the W3C. Here it is wrong for the same reason I am in the process of developing CSS styles not applied.

When circulating through the exclusive assignment directly to each array element, to print out data in the console following format:

 

When the object by assigning give, then push the object into an array manner is obtained a data format:

Guess you like

Origin www.cnblogs.com/edward-life/p/11311287.html