How to show full object in Chrome console?

前端 未结 9 1310
情话喂你
情话喂你 2020-11-28 02:04
var functor=function(){
    //test
}

functor.prop=1;

console.log(functor);

this only show the function part of the functor, cannot show the prope

9条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 02:20

    this worked perfectly for me:

    for(a in array)console.log(array[a])
    

    you can extract any array created in console for find/replace cleanup and posterior usage of this data extracted

提交回复
热议问题