久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

您可以以編程方式訪問 Firebug 控制臺輸出嗎?

Can you programmatically access the Firebug console output?(您可以以編程方式訪問 Firebug 控制臺輸出嗎?)
本文介紹了您可以以編程方式訪問 Firebug 控制臺輸出嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

是否可以通過編程方式訪問先前記錄的 Firebug 輸出?

Is it possible to access the previously-logged output of Firebug programmatically?

例如:

console.log('a');
console.log('b');
console.log('c');

for (var i = 0; i < console.output.length; ++i) {
    alert(console.output[i]);  // "a", "b", "c"
}

推薦答案

如果不自己包裝 window.console,我不相信這是可能的.查看源代碼,似乎當調用 Firebug 的 console 方法(在主文檔中運行,因此沒有特殊權限)時,它會在主文檔中留下一些對象,然后引發(fā)一個自定義事件.在特權插件域中運行的 Firebug 偵聽器拾取事件,吞噬文檔中剩余的對象并將適當?shù)膬热萏砑拥娇刂婆_面板,控制臺面板是瀏覽器 chrome 的一部分,因此無法訪問在主程序中運行的 JavaScript窗口.

Without wrapping window.console yourself, I don't believe this is possible. Looking at the source, it seems that when a Firebug's console method (running within the main document and therefore having no special privileges) is called, it leaves some objects lying around in the main document and then raises a custom event. A Firebug listener running in privileged-plug-in-land picks up the event, gobbles up the objects left in the document and adds appropriate things to the console panel, which is part of the browser chrome and therefore inaccessible to JavaScript running in the main window.

我可能對這方面的細節(jié)有誤,因為我只是粗略地查看了 Firebug 源代碼,并且很少進行 Firefox 插件開發(fā),但我認為這大體上是正確的.

I could be wrong about the details of this because I've only taken a cursory look at the Firebug source and done very little Firefox plug-in development, but I think this is broadly correct.

這篇關于您可以以編程方式訪問 Firebug 控制臺輸出嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯(lián)網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

相關文檔推薦

How to fix BrowserWindow is not a constructor error when creating child window in Electron renderer process(在 Electron 渲染器進程中創(chuàng)建子窗口時如何修復 BrowserWindow 不是構造函數(shù)錯誤) - IT屋-程序員軟件開發(fā)技術
mainWindow.loadURL(quot;https://localhost:3000/quot;) show white screen on Electron app(mainWindow.loadURL(https://localhost:3000/) 在 Electron 應用程序上顯示白屏)
Electron webContents executeJavaScript : Cannot execute script on second on loadURL(Electron webContents executeJavaScript:無法在第二個 loadURL 上執(zhí)行腳本)
how to use electron browser window inside components in angular-cli?(如何在angular-cli的組件內使用電子瀏覽器窗口?)
ElectronJS - sharing redux store between windows?(ElectronJS - 在 Windows 之間共享 redux 存儲?)
How to access camera/webcamera inside electron app?(如何在電子應用程序中訪問相機/網絡攝像頭?)
主站蜘蛛池模板: 国产精品18hdxxxⅹ在线 | 欧美成人激情视频 | 在线观看国产三级 | 亚洲一区二区三区免费在线观看 | 在线毛片网 | 91久久精品国产 | 亚洲精品乱码 | 米奇成人网 | 欧美一a| 日本人做爰大片免费观看一老师 | www亚洲精品 | 在线观看国产视频 | 亚洲成人一区二区 | 久草精品视频 | 99国产精品一区二区三区 | 国产黄色在线观看 | 亚洲精品日韩一区二区电影 | 国产精品一区一区三区 | 成人免费视频网站在线看 | 天天干精品 | 日韩精品在线一区 | 妹子干综合| 亚洲精品乱码久久久久久黑人 | 久久成人免费 | 欧美精品一区二区三区在线播放 | 久久精品亚洲国产奇米99 | 激情五月婷婷综合 | 日本成人在线观看网站 | 久久久久久国模大尺度人体 | 亚洲高清av在线 | 中文字幕91av | 欧美区在线 | 亚洲天堂影院 | 黄色大片视频 | 99久久免费精品 | 中文字幕一区在线观看视频 | 欧美精品在线一区二区三区 | 在线国产视频 | 桃色五月 | 精品九九九 | 成人精品一区二区 |