View list of all JavaScript variables in Google Chrome Console

問題:

In Firebug, the DOM tab shows a list of all your public variables and objects.在 Firebug 中,DOM 選項卡顯示所有公共變量和對象的列表。 In Chrome's console you have to type the name of the public variable or object you want to explore.在 Chrome 的控制檯中,您必須輸入要探索的公共變量或對象的名稱。

Is there a way - or at least a command - for Chrome's console to display a list all the public variables and objects?有沒有辦法——或者至少是一個命令——讓 Chrome 的控制檯顯示所有公共變量和對象的列表? It will save a lot of typing.這將節省大量的打字。


解決方案:

參考一: https://en.stackoom.com/question/CJTH
參考二: https://stackoom.com/question/CJTH
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章