How to copy the objects from chrome console window?

前端 未结 5 1674
被撕碎了的回忆
被撕碎了的回忆 2020-12-12 19:06

I have tried to copy the objects as text, but it show just [object object]. Before this I had tried with copy commend it was success but not now.Is that chr

5条回答
  •  悲哀的现实
    2020-12-12 19:22

    It should ideally copy the object with the copy command that you wrote. I just tried it and worked for me.
    Something else that you can try to do is to stringify that object and then copy it.
    Ex.

    copy(JSON.stringify(temp6))
    

提交回复
热议问题