View list of all JavaScript variables in Google Chrome Console

后端 未结 15 2124
星月不相逢
星月不相逢 2020-11-29 14:32

In Firebug, the DOM tab shows a list of all your public variables and objects. In Chrome\'s console you have to type the name of the public variable or object you want to ex

15条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 15:15

    As all "public variables" are in fact properties of the window object (of the window/tab you are looking at), you can just inspect the "window" object instead. If you have multiple frames, you will have to select the correct window object (like in Firebug) anyway.

提交回复
热议问题