Chrome displays different object contents on expand

后端 未结 4 1930
名媛妹妹
名媛妹妹 2020-12-04 02:27

Why does Chrome display two differing datasets depending on if you have the object view expanded?

In contracted view, my object has two properties:

4条回答
  •  遥遥无期
    2020-12-04 03:00

    You can clone your object to prevent re-evaluate.

    console.log(Object.assign({}, obj));
    

提交回复
热议问题