How to save the output of a console.log(object) to a file?

后端 未结 9 1288
情深已故
情深已故 2020-11-28 00:14

I tried using JSON.stringify(object), but it doesn\'t go down on the whole structure and hierarchy.

On the other hand console.log(object) d

9条回答
  •  一向
    一向 (楼主)
    2020-11-28 01:03

    In case you have an object logged:

    • Right click on the object in console and click Store as a global variable
    • the output will be something like temp1
    • type in console copy(temp1)
    • paste to your favorite text editor

提交回复
热议问题