如何从Chrome控制台窗口复制对象? [英] How to copy the objects from chrome console window?
问题描述
我曾尝试将对象复制为文本,但仅显示[对象对象]。在此之前,我曾尝试过使用 copy 表示它是成功的,但不是现在。是否有铬问题?
我试过了吗?
只需右键单击该对象并将其作为全局变量存储在Chrome控制台窗口中,然后使用下一个副本(temp6)命令并试图粘贴在记事本++中。
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 chrome issue?
What I tried?
Just Right click on the object and store as global variable from chrome console window, then next just used copy(temp6) command and tried to paste in notepad++.
推荐答案
理想情况下,应该使用您编写的 copy
命令复制对象。
我只是尝试过并为我工作。
您可以尝试做的其他事情是对该对象进行字符串化,然后将其复制。
Ex。
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))
这篇关于如何从Chrome控制台窗口复制对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!