javascript - In the for loop, when the loop variable i is pushed into an array, why is the result printed on the console like this?
过去多啦不再A梦
过去多啦不再A梦 2017-05-19 10:16:51
0
2
740

Every result is the same after clicking on it, it is the final result. What is the reason?

过去多啦不再A梦
过去多啦不再A梦

reply all(2)
世界只因有你

Because what you output is the data array, if the content of data is modified later, the object on the console will also change accordingly.

PHPzhong

Yes, the data in the console is real-time, and the output is current. You can save the historical status and then output it, otherwise you will see the final result

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template