Javascript / Chrome - How to copy an object from the webkit inspector as code

后端 未结 11 1935
天涯浪人
天涯浪人 2020-11-29 14:47

I am doing a console.log statement in my javascript in order to log a javascript object. I\'m wondering if there\'s a way, once that\'s done - to copy that object as javascr

11条回答
  •  庸人自扰
    2020-11-29 15:11

    Right click on data which you want to store

    • Firstly, Right click on data which you want to store -> select "Store as global variable" And the new temp variable appear like bellow: (temp3 variable): New temp variable appear in console
    • Second use command copy(temp_variable_name) like picture: enter image description here After that, you can paste data to anywhere you want. hope useful/

提交回复
热议问题