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

后端 未结 11 1907
天涯浪人
天涯浪人 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:12

    You can now accomplish this in Chrome by right clicking on the object and selecting "Store as Global Variable": http://www.youtube.com/watch?v=qALFiTlVWdg

提交回复
热议问题