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

后端 未结 9 1290
情深已故
情深已故 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 00:43

    A more simple way is to use fire fox dev tools, console.log(yourObject) -> right click on object -> select "copy object" -> paste results into notepad

    thanks.

提交回复
热议问题