chrome devtools inconsistency array length

北战南征 提交于 2019-11-29 15:31:06

This is because the initial display, the one with this format:

Object {Body: Array[20], Head: Array[1]}

is generated when the console first logs it. After expanding, it loads all of the object's properties, and if the properties have changed in between logging it and opening it, it will show different values. You can hover over the light-blue i that shows behind the object to see what Chrome says about this itself.

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