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

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

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

問題描述

是否可以通過編程方式訪問先前記錄的 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,我不相信這是可能的.查看源代碼,似乎當(dāng)調(diào)用 Firebug 的 console 方法(在主文檔中運(yùn)行,因此沒有特殊權(quán)限)時(shí),它會在主文檔中留下一些對象,然后引發(fā)一個(gè)自定義事件.在特權(quán)插件域中運(yùn)行的 Firebug 偵聽器拾取事件,吞噬文檔中剩余的對象并將適當(dāng)?shù)膬?nèi)容添加到控制臺面板,控制臺面板是瀏覽器 chrome 的一部分,因此無法訪問在主程序中運(yùn)行的 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.

我可能對這方面的細(xì)節(jié)有誤,因?yàn)槲抑皇谴致缘夭榭戳?Firebug 源代碼,并且很少進(jìn)行 Firefox 插件開發(fā),但我認(rèn)為這大體上是正確的.

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.

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

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

相關(guān)文檔推薦

How to fix BrowserWindow is not a constructor error when creating child window in Electron renderer process(在 Electron 渲染器進(jìn)程中創(chuàng)建子窗口時(shí)如何修復(fù) BrowserWindow 不是構(gòu)造函數(shù)錯(cuò)誤) - IT屋-程序員軟件開發(fā)技術(shù)
mainWindow.loadURL(quot;https://localhost:3000/quot;) show white screen on Electron app(mainWindow.loadURL(https://localhost:3000/) 在 Electron 應(yīng)用程序上顯示白屏)
Electron webContents executeJavaScript : Cannot execute script on second on loadURL(Electron webContents executeJavaScript:無法在第二個(gè) loadURL 上執(zhí)行腳本)
how to use electron browser window inside components in angular-cli?(如何在angular-cli的組件內(nèi)使用電子瀏覽器窗口?)
ElectronJS - sharing redux store between windows?(ElectronJS - 在 Windows 之間共享 redux 存儲?)
How to access camera/webcamera inside electron app?(如何在電子應(yīng)用程序中訪問相機(jī)/網(wǎng)絡(luò)攝像頭?)
主站蜘蛛池模板: 福利片在线 | 亚洲 中文 欧美 日韩 在线观看 | 久久ww| 国产黄视频在线播放 | 精品久久影院 | 久久国产精品一区二区三区 | 中文字幕在线观看 | 99热都是精品 | www国产亚洲精品久久网站 | 一区二区三区在线播放 | 久久一二区| 日本久久网 | 精品国产欧美 | 国产精品久久久久久久久久东京 | 亚洲视频欧美视频 | 日韩免费视频 | 国产91亚洲精品 | 精品欧美一区二区三区久久久 | 精品国产乱码久久久久久久久 | 国产一区二区在线视频 | 美女视频黄的 | 国产亚洲二区 | 日本在线播放一区二区 | 黄色片在线观看网址 | 天天成人综合网 | 国产激情免费视频 | 欧美日韩综合一区 | 亚洲成人一级片 | 99热99| 国产高清精品一区二区三区 | 欧美一区不卡 | 亚洲国产精品第一区二区 | 日韩小视频在线 | 91成人午夜性a一级毛片 | 亚洲欧美日韩电影 | 国产91网站在线观看 | 中文字幕一区二区三区日韩精品 | av永久免费| 国产欧美精品区一区二区三区 | 亚洲成人精品久久 | 欧美a区 |